Affects Version/s: None
Fix Version/s: None
**Reported in Launchpad by Francisco Bordenave last update 02-12-2014 08:19:49
Xtrabackup 2.2.5 fails in --apply-log stage throwing out this error:
InnoDB: Doing recovery: scanned up to log sequence number 14157798531072 (12%)
InnoDB: Doing recovery: scanned up to log sequence number 14157803773952 (12%)
InnoDB: Starting an apply batch of log records to the database...
InnoDB: Progress in percent: 2014-10-22 11:59:39 7fd3571a9720 InnoDB: Assertion failure in thread 140545676187424 in file fil0fil.cc line 5655
InnoDB: Failing assertion: (len % OS_FILE_LOG_BLOCK_SIZE) == 0
InnoDB: We intentionally generate a memory trap.
InnoDB: Submit a detailed bug report to http://bugs.mysql.com.
InnoDB: If you get repeated assertion failures or crashes, even
InnoDB: immediately after the mysqld startup, there may be
InnoDB: corruption in the InnoDB tablespace. Please refer to
InnoDB: about forcing recovery.
16:59:39 UTC - xtrabackup got signal 6 ;
This could be because you hit a bug or data is corrupted.
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.
Thread pointer: 0x1765eb0
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
stack_bottom = 1766ec0 thread_stack 0x10000
xtrabackup(fil_io(unsigned long, bool, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, void*, void*)+0x6a8) [0x68a870]
xtrabackup(buf_read_recv_pages(unsigned long, unsigned long, unsigned long, unsigned long const*, unsigned long)+0x1ce) [0x7242bf]
xtrabackup(recv_apply_hashed_log_recs(unsigned long)+0x2b1) [0x750956]
xtrabackup(recv_scan_log_recs(unsigned long, unsigned long, unsigned char const*, unsigned long, unsigned long, unsigned long*, unsigned long*)+0x68d) [0x752098]
xtrabackup(recv_recovery_from_checkpoint_start_func(unsigned long, unsigned long, unsigned long, unsigned long)+0x5fc) [0x7528cf]
Please report a bug at https://bugs.launchpad.net/percona-xtrabackup
innobackupex: ibbackup failed at /usr/bin/innobackupex line 2619.
backup-my.cnf file contents:
For what we can see in code in XB 2.2.5 it looks like there is an assertion in the file:
percona-xtrabackup-2.2.5 pancho$ grep -rn OS_FILE_LOG_BLOCK_SIZE * | grep fil0
storage/innobase/fil/fil0fil.cc:5654: ut_a(byte_offset % OS_FILE_LOG_BLOCK_SIZE == 0);
storage/innobase/fil/fil0fil.cc:5655: ut_a((len % OS_FILE_LOG_BLOCK_SIZE) == 0);
That is not present in 5.6.19 and recent Percona Server.
This bug looks like a regression from https://bugs.launchpad.net/percona-server/+bug/1116761 introduced in xtrabackup.