When using --compact, --rebuild-indexes should be automatic
Bug #1333729 reported by
Yves Trudeau
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraBackup moved to https://jira.percona.com/projects/PXB |
Triaged
|
Medium
|
Unassigned | ||
2.1 |
Triaged
|
Medium
|
Unassigned | ||
2.2 |
Triaged
|
Medium
|
Unassigned | ||
2.3 |
Triaged
|
Medium
|
Unassigned |
Bug Description
Using the --compact option should automatically trigger the --rebuild-indexes option during the apply-log phase. This can be easily achieve with a flag file in the datadir.
To post a comment you must log in.
It seems, if we take backup with --compact option and if we don't use --rebuild -indexes option during the apply log then while access the secondary-index data got corrupted. Even server crashed. So it makes sense that "--compact option should automatically trigger the --rebuild-indexes "
root@nilnandan- Dell-XPS: ~# innobackupex --compact --user=root --password=root /home/nilnandan /backup/
innobackupex --apply-log /home/nilnandan /backup/ 2014-07- 01_15-13- 41/
after that copy the backup data to datadir and started mysql. MySQL started successfully but when tries to access secondary index and the table status got below error.
mysql> select * from nil_test where city = 'ahmedabad';
ERROR 2013 (HY000): Lost connection to MySQL server during query
mysql>
mysql> show create table nil_test \G
ERROR 2006 (HY000): MySQL server has gone away
No connection. Trying to reconnect...
Connection id: 1
Current database: test
******* ******* ******* ****** 1. row ******* ******* ******* ******
Table: nil_test
Create Table: CREATE TABLE `nil_test` (
`id` int(11) DEFAULT NULL,
`name` varchar(10) DEFAULT NULL,
`city` varchar(10) DEFAULT NULL,
`phone` int(11) DEFAULT NULL,
KEY `city_phone` (`city`,`phone`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1
1 row in set (0.01 sec)
This is the content of error log:
InnoDB: Page directory corruption: infimum not pointed to bugs.percona. com/
2014-07-01 14:40:04 7f536c6d8700 InnoDB: Page dump in ascii and hex (16384 bytes):
...
InnoDB: End of page dump
2014-07-01 14:40:04 7f536c6d8700 InnoDB: uncompressed page, stored checksum in field1 3735928559, calculated checksums for field1: crc32 177807968, innodb 3475755373, none 3735928559, stored checksum in field2 3735928559, calculated checksums for field2: crc32 177807968, innodb 1624572976, none 3735928559, page LSN 0 0, low 4 bytes of LSN at page end 0, page number (if stored to page already) 0, space id (if created with >= MySQL-4.1.1 and stored already) 0
InnoDB: Page may be a freshly allocated page
09:10:04 UTC - mysqld got signal 11 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed,
something is definitely wrong and this may fail.
Please help us make Percona Server better by reporting any
bugs at http://
key_buffer_ size=16777216 size=131072 connections= 1 size)*max_ threads = 77355 K bytes of memory
read_buffer_
max_used_
max_threads=153
thread_count=1
connection_count=1
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_
Hope that's ok; if not, decrease some variables in the equation.
Thread pointer: 0x7f539fc09e80 mysqld( my_print_ stacktrace+ 0x2c)[0x7f539d8 4262c] mysqld( handle_ fatal_signal+ 0x3cb)[ 0...
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 7f536c6d7e40 thread_stack 0x30000
/usr/sbin/
/usr/sbin/