Comment 10 for bug 1342494

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote : Re: InnoDB: Failing assertion: bitmap_files->files[i].start_lsn >= bitmap_files->files[i - 1].start_lsn

This is caused by inconsistent bitmap file directory, where old bitmap data has been partially overwritten by a new bitmap data with restarted LSN. Will be finally confirmed by a directory listing with timestamps.

(gdb) print bitmap_files->files[0]
$4 = {name = "ib_modified_log_1_0.xdb", '\000' <repeats 488 times>, start_lsn = 0, seq_num = 1}
(gdb) print bitmap_files->files[1]
$5 = {name = "ib_modified_log_2_1627177563.xdb", '\000' <repeats 479 times>, start_lsn = 1627177563, seq_num = 2}
(gdb) print bitmap_files->files[2]
$6 = {name = "ib_modified_log_3_49941516.xdb", '\000' <repeats 481 times>, start_lsn = 49941516, seq_num = 3}
(gdb) print bitmap_files->files[3]
$7 = {name = "ib_modified_log_4_1658108010.xdb", '\000' <repeats 479 times>, start_lsn = 1658108010, seq_num = 4}
(gdb) print bitmap_files->files[4]
$8 = {name = "ib_modified_log_5_1664036441.xdb", '\000' <repeats 479 times>, start_lsn = 1664036441, seq_num = 5}
(gdb) print bitmap_files->files[5]
$9 = {name = "ib_modified_log_6_1668491722.xdb", '\000' <repeats 479 times>, start_lsn = 1668491722, seq_num = 6}
(gdb) print bitmap_files->files[6]
$10 = {name = '\000' <repeats 511 times>, start_lsn = 0, seq_num = 0}

The fix would be to diagnose this as a regular error instead of debug assert.