PXB Table flags mismatch on stats with tables filter against MariaDB database with partitioned tables

Bug #1691102 reported by Vasily Nemkov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona XtraBackup moved to https://jira.percona.com/projects/PXB
Status tracked in 2.4
2.3
Triaged
Low
Unassigned
2.4
Triaged
Low
Unassigned

Bug Description

PXB 2.3.8 was tested against the MariaDB 10.1.2, resulting in several tests failing with the same symptoms:
    ib_part_include
    ib_part_tf_innodb

PXB crashes when invoked with --stats and --tables (or --tables-file) producing following output:
InnoDB: Error: table flags are 0x400 in the data dictionary
InnoDB: but the flags in file ./test/test#P#p2.ibd are 0x0!
2017-05-16 14:59:22 7fd2eb047740 InnoDB: Assertion failure in thread 140543862798144 in file fil0fil.cc line 624
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: http://dev.mysql.com/doc/refman/5.6/en/forcing-innodb-recovery.html
InnoDB: about forcing recovery.
11:59:22 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: 0x0
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 = 0 thread_stack 0x10000
/home/enmk/proj/build-pxb-2.3-Desktop_Clang_x64-Debug/storage/innobase/xtrabackup/src/xtrabackup(my_print_stacktrace+0x34)[0xc47204]
/home/enmk/proj/build-pxb-2.3-Desktop_Clang_x64-Debug/storage/innobase/xtrabackup/src/xtrabackup(handle_fatal_signal+0x243)[0xa61ba3]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x11390)[0x7fd2eac44390]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38)[0x7fd2e92b1428]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x16a)[0x7fd2e92b302a]
/home/enmk/proj/build-pxb-2.3-Desktop_Clang_x64-Debug/storage/innobase/xtrabackup/src/xtrabackup[0x747bca]
/home/enmk/proj/build-pxb-2.3-Desktop_Clang_x64-Debug/storage/innobase/xtrabackup/src/xtrabackup[0x74ef2c]
/home/enmk/proj/build-pxb-2.3-Desktop_Clang_x64-Debug/storage/innobase/xtrabackup/src/xtrabackup[0x747017]
/home/enmk/proj/build-pxb-2.3-Desktop_Clang_x64-Debug/storage/innobase/xtrabackup/src/xtrabackup(_Z19fil_space_get_flagsm+0x90)[0x7471c0]
/home/enmk/proj/build-pxb-2.3-Desktop_Clang_x64-Debug/storage/innobase/xtrabackup/src/xtrabackup(_Z22fil_space_get_zip_sizem+0x15)[0x747235]
/home/enmk/proj/build-pxb-2.3-Desktop_Clang_x64-Debug/storage/innobase/xtrabackup/src/xtrabackup(_Z16buf_page_get_genmmmmP11buf_block_tmPKcmP5mtr_t+0x246)[0x6bdb86]
/home/enmk/proj/build-pxb-2.3-Desktop_Clang_x64-Debug/storage/innobase/xtrabackup/src/xtrabackup[0x8454ed]
/home/enmk/proj/build-pxb-2.3-Desktop_Clang_x64-Debug/storage/innobase/xtrabackup/src/xtrabackup(_Z18btr_root_block_getPK12dict_index_tmP5mtr_t+0x6b)[0x84514b]
/home/enmk/proj/build-pxb-2.3-Desktop_Clang_x64-Debug/storage/innobase/xtrabackup/src/xtrabackup(_Z12btr_root_getPK12dict_index_tP5mtr_t+0x27)[0x845797]
/home/enmk/proj/build-pxb-2.3-Desktop_Clang_x64-Debug/storage/innobase/xtrabackup/src/xtrabackup(_Z12btr_get_sizeP12dict_index_tmP5mtr_t+0xbd)[0x84731d]
/home/enmk/proj/build-pxb-2.3-Desktop_Clang_x64-Debug/storage/innobase/xtrabackup/src/xtrabackup[0x70325e]
/home/enmk/proj/build-pxb-2.3-Desktop_Clang_x64-Debug/storage/innobase/xtrabackup/src/xtrabackup(_Z27dict_stats_update_transientP12dict_table_t+0x16c)[0x702c4c]
/home/enmk/proj/build-pxb-2.3-Desktop_Clang_x64-Debug/storage/innobase/xtrabackup/src/xtrabackup[0x625e31]
/home/enmk/proj/build-pxb-2.3-Desktop_Clang_x64-Debug/storage/innobase/xtrabackup/src/xtrabackup(main+0x9b4)[0x625534]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7fd2e929c830]
/home/enmk/proj/build-pxb-2.3-Desktop_Clang_x64-Debug/storage/innobase/xtrabackup/src/xtrabackup(_start+0x29)[0x61db69]

Tags: mariadb
Revision history for this message
Sergei Glushchenko (sergei.glushchenko) wrote :

Probably only affects partitioned tables.

tags: added: mariadb
Revision history for this message
Sergei Glushchenko (sergei.glushchenko) wrote :

Triaging as 'low' because --stats is really isn't used often

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/PXB-952

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

Other bug subscribers

Remote bug watches

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