INFORMATION_SCHEMA.INNODB_CHANGED_PAGES query fails server with an I/O error if a bitmap file in the middle of requested range is missing

Bug #1179974 reported by Laurynas Biveinis
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Fix Released
Critical
Laurynas Biveinis
5.1
Fix Released
High
Laurynas Biveinis
5.5
Fix Released
High
Laurynas Biveinis
5.6
Fix Released
Critical
Laurynas Biveinis

Bug Description

If a INNODB_CHANGED_PAGES query needs a bitmap file range with one of the files missing in the middle of the range, then the server will stop with an I/O error on a debug build, probably on a release build as well.

To reproduce, add the following to the end of innodb_changed_pages.test, before the final DROP TABLE t1:

let $MYSQLD_DATADIR= `select @@datadir`;
# --replace_regex /_[[:digit:]]+\.xdb$//
list_files $MYSQLD_DATADIR ib_modified_log*;

remove_files_wildcard $MYSQLD_DATADIR ib_modified_log_4_*.xdb;

# --replace_regex /_[[:digit:]]+\.xdb$//
list_files $MYSQLD_DATADIR ib_modified_log*;

SELECT COUNT(*) FROM INFORMATION_SCHEMA.INNODB_CHANGED_PAGES
       WHERE START_LSN > 10000;

Discovered while working on XtraBackup, as the bitmap file reader is shared between XtraDB and XtraBackup. The fix will be to take the XtraBackup reader robustness improvements.

Triaging as Medium instead of High, because impossible to reproduce without write access to the server data dir.

Tags: bitmap xtradb

Related branches

tags: added: bitmap xtradb
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-360

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.