Uploaded image for project: 'Percona XtraBackup'
  1. Percona XtraBackup
  2. PXB-1824

PXB crashes in incremental backup prepare when row format is changed

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 2.4.13, 8.0.5
    • Fix Version/s: 2.4.14, 8.0.6
    • Component/s: None
    • Labels:
      None

      Description

      Start PS with --log-bin option
      Add data in PS using sysbench: 10 tables, 1000 rows in each table
      Change the row format of a table continuously

      ( for ((i=1; i<=10; i++)); do
       # Check if database is up otherwise exit the loop
       ${mysqldir}/bin//mysqladmin ping --user=root --socket=${mysqldir}/socket.sock 2>/dev/null 1>&2
       if [ "$?" -ne 0 ]; then
       break
       fi 
       ${mysqldir}/bin/mysql -uroot -S${mysqldir}/socket.sock -e "ALTER TABLE test.sbtest2 ROW_FORMAT=COMPRESSED;"
       ${mysqldir}/bin/mysql -uroot -S${mysqldir}/socket.sock -e "ALTER TABLE test.sbtest2 ROW_FORMAT=DYNAMIC;"
       ${mysqldir}/bin/mysql -uroot -S${mysqldir}/socket.sock -e "ALTER TABLE test.sbtest2 ROW_FORMAT=COMPACT;"
       ${mysqldir}/bin/mysql -uroot -S${mysqldir}/socket.sock -e "ALTER TABLE test.sbtest2 ROW_FORMAT=REDUNDANT;"
       done ) &

      Take full backup with lock-ddl

      /home/mchawla/pxb130219_2.4_debug/bin/xtrabackup --user=root --password='' --backup --target-dir=/home/mchawla/dbbackup_02_04_2019/full -S /home/mchawla/PS241218-percona-server-5.7.24-27-linux-x86_64-debug/socket.sock --datadir=/home/mchawla/PS241218-percona-server-5.7.24-27-linux-x86_64-debug/data --lock-ddl

      Start a data load on the server using sysbench
      Take incremental backup with lock-ddl

      /home/mchawla/pxb130219_2.4_debug/bin/xtrabackup --user=root --password='' --backup --target-dir=/home/mchawla/dbbackup_02_04_2019/inc --incremental-basedir=/home/mchawla/dbbackup_02_04_2019/full -S /home/mchawla/PS241218-percona-server-5.7.24-27-linux-x86_64-debug/socket.sock --datadir=/home/mchawla/PS241218-percona-server-5.7.24-27-linux-x86_64-debug/data --lock-ddl

      Prepare the full backup

      /home/mchawla/pxb130219_2.4_debug/bin/xtrabackup --user=root --password='' --prepare --apply-log-only --target_dir=/home/mchawla/dbbackup_02_04_2019/full

      Prepare the incremental backup

      /home/mchawla/pxb130219_2.4_debug/bin/xtrabackup --user=root --password='' --prepare --target_dir=/home/mchawla/dbbackup_02_04_2019/full --incremental-dir=/home/mchawla/dbbackup_02_04_2019/inc

      PXB crashes during prepare
      PXB2.4 crash log:

      InnoDB: Assertion failure in thread 140450633254656 in file rem0rec.ic line 435
      InnoDB: Failing assertion: ret > 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: http://dev.mysql.com/doc/refman/5.7/en/forcing-innodb-recovery.html
      InnoDB: about forcing recovery.
      06:38:10 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.
      Attempting to collect some information that could help diagnose the problem.
      As this is a crash and something is definitely wrong, the information
      collection process might 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/mchawla/pxb130219_2.4_debug/bin/xtrabackup(my_print_stacktrace+0x35)[0x157aab9]
      /home/mchawla/pxb130219_2.4_debug/bin/xtrabackup(handle_fatal_signal+0x2a5)[0x131d000]
      /usr/lib64/libpthread.so.0(+0xf5d0)[0x7fbd3f1895d0]
      /usr/lib64/libc.so.6(gsignal+0x37)[0x7fbd3ce04207]
      /usr/lib64/libc.so.6(abort+0x148)[0x7fbd3ce058f8]
      /home/mchawla/pxb130219_2.4_debug/bin/xtrabackup[0x1148f45]
      /home/mchawla/pxb130219_2.4_debug/bin/xtrabackup[0x11b0282]
      /home/mchawla/pxb130219_2.4_debug/bin/xtrabackup(_Z20rec_get_offsets_funcPKhPK12dict_index_tPmmPKcmPP16mem_block_info_t+0x12d)[0x11b2472]
      /home/mchawla/pxb130219_2.4_debug/bin/xtrabackup(_Z25page_cur_parse_insert_recmPKhS0_P11buf_block_tP12dict_index_tP5mtr_t+0x465)[0x102029a]
      /home/mchawla/pxb130219_2.4_debug/bin/xtrabackup[0x118ae9e]
      /home/mchawla/pxb130219_2.4_debug/bin/xtrabackup(_Z22recv_recover_page_funcmP11buf_block_t+0x650)[0x118cc9c]
      /home/mchawla/pxb130219_2.4_debug/bin/xtrabackup(_Z20buf_page_io_completeP10buf_page_tb+0x82f)[0x11a8cef]
      /home/mchawla/pxb130219_2.4_debug/bin/xtrabackup(_Z12fil_aio_waitm+0x1b1)[0x1094749]
      /home/mchawla/pxb130219_2.4_debug/bin/xtrabackup(io_handler_thread+0x5b)[0x10e16b6]
      /usr/lib64/libpthread.so.0(+0x7dd5)[0x7fbd3f181dd5]
      /usr/lib64/libc.so.6(clone+0x6d)[0x7fbd3cecbead]

      PXB8.0 crash log:

      InnoDB: Assertion failure: log0recv.cc:1940:!page || (page_type == FIL_PAGE_INDEX || page_type == FIL_PAGE_SDI || page_type == FIL_PAGE_RTREE)
      InnoDB: thread 140433787586304InnoDB: We intentionally generate a memory trap.
      InnoDB: Submit a detailed bug report to https://jira.percona.com/projects/PXB.
      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/8.0/en/forcing-innodb-recovery.html
      InnoDB: about forcing recovery.
      11:12:18 UTC - mysqld got signal 6 ;
      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.
      Attempting to collect some information that could help diagnose the problem.
      As this is a crash and something is definitely wrong, the information
      collection process might fail.
      
      key_buffer_size=0
      read_buffer_size=131072
      max_used_connections=0
      max_threads=0
      thread_count=0
      connection_count=0
      It is possible that mysqld could use up to 
      key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 0 K  bytes of memory
      Hope that's ok; if not, decrease some variables in the equation.
      
      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...
      60%
      Extending tablespace : 25 space name: test/sbtest2 to new size: 256 pages during recovery.
      Extending tablespace : 25 space name: test/sbtest2 to new size: 320 pages during recovery.
      Extending tablespace : 25 space name: test/sbtest2 to new size: 384 pages during recovery.
      Extending tablespace : 25 space name: test/sbtest2 to new size: 448 pages during recovery.
      stack_bottom = 0 thread_stack 0x46000
      Extending tablespace : 25 space name: test/sbtest2 to new size: 512 pages during recovery.
      /home/mchawla/pxb_rocksdb_8_0_5_debug/bin/xtrabackup(my_print_stacktrace(unsigned char*, unsigned long)+0x43) [0x4337809]
      /home/mchawla/pxb_rocksdb_8_0_5_debug/bin/xtrabackup(handle_fatal_signal+0x3e3) [0x2ee9a46]
      /usr/lib64/libpthread.so.0(+0xf5d0) [0x7fb951c405d0]
      /usr/lib64/libc.so.6(gsignal+0x37) [0x7fb94f8bb207]
      /usr/lib64/libc.so.6(abort+0x148) [0x7fb94f8bc8f8]
      /home/mchawla/pxb_rocksdb_8_0_5_debug/bin/xtrabackup() [0x34e6f2e]
      /home/mchawla/pxb_rocksdb_8_0_5_debug/bin/xtrabackup() [0x330b26c]
      /home/mchawla/pxb_rocksdb_8_0_5_debug/bin/xtrabackup(recv_recover_page_func(bool, buf_block_t*)+0x62c) [0x330d04d]
      /home/mchawla/pxb_rocksdb_8_0_5_debug/bin/xtrabackup(buf_page_io_complete(buf_page_t*, bool)+0x64f) [0x307a25f]
      /home/mchawla/pxb_rocksdb_8_0_5_debug/bin/xtrabackup(fil_aio_wait(unsigned long)+0x1ac) [0x315f903]
      /home/mchawla/pxb_rocksdb_8_0_5_debug/bin/xtrabackup() [0x345ed91]
      /home/mchawla/pxb_rocksdb_8_0_5_debug/bin/xtrabackup(void std::__invoke_impl<void, void (*&)(unsigned long), unsigned long&>(std::__invoke_other, void (*&)(unsigned long), unsigned long&)+0x34) [0x2873ff4]
      /home/mchawla/pxb_rocksdb_8_0_5_debug/bin/xtrabackup(std::__invoke_result<void (*&)(unsigned long), unsigned long&>::type std::__invoke<void (*&)(unsigned long), unsigned long&>(void (*&)(unsigned long), unsigned long&)+0x3f) [0x2873ba1]
      /home/mchawla/pxb_rocksdb_8_0_5_debug/bin/xtrabackup(void std::_Bind<void (*(unsigned long))(unsigned long)>::__call<void, , 0ul>(std::tuple<>&&, std::_Index_tuple<0ul>)+0x48) [0x287374e]
      /home/mchawla/pxb_rocksdb_8_0_5_debug/bin/xtrabackup(void std::_Bind<void (*(unsigned long))(unsigned long)>::operator()<, void>()+0x2a) [0x2873088]
      /home/mchawla/pxb_rocksdb_8_0_5_debug/bin/xtrabackup(void Runnable::operator()<void (*)(unsigned long), unsigned long>(void (*&&)(unsigned long), unsigned long&&)+0x5d) [0x2872043]
      /home/mchawla/pxb_rocksdb_8_0_5_debug/bin/xtrabackup(void std::__invoke_impl<void, Runnable, void (*)(unsigned long), unsigned long>(std::__invoke_other, Runnable&&, void (*&&)(unsigned long), unsigned long&&)+0x4f) [0x2870169]
      /home/mchawla/pxb_rocksdb_8_0_5_debug/bin/xtrabackup(std::__invoke_result<Runnable, void (*)(unsigned long), unsigned long>::type std::__invoke<Runnable, void (*)(unsigned long), unsigned long>(Runnable&&, void (*&&)(unsigned long), unsigned long&&)+0x57) [0x286db51]
      /home/mchawla/pxb_rocksdb_8_0_5_debug/bin/xtrabackup(decltype (__invoke((_S_declval<0ul>)(), (_S_declval<1ul>)(), (_S_declval<2ul>)())) std::thread::_Invoker<std::tuple<Runnable, void (*)(unsigned long), unsigned long> >::_M_invoke<0ul, 1ul, 2ul>(std::_Index_tuple<0ul, 1ul, 2ul>)+0x5f) [0x28749fb]
      /home/mchawla/pxb_rocksdb_8_0_5_debug/bin/xtrabackup(std::thread::_Invoker<std::tuple<Runnable, void (*)(unsigned long), unsigned long> >::operator()()+0x1d) [0x2874855]
      /home/mchawla/pxb_rocksdb_8_0_5_debug/bin/xtrabackup(std::thread::_State_impl<std::thread::_Invoker<std::tuple<Runnable, void (*)(unsigned long), unsigned long> > >::_M_run()+0x1c) [0x287456e]
      /home/mchawla/pxb_rocksdb_8_0_5_debug/bin/xtrabackup() [0x4667a8f]
      /usr/lib64/libpthread.so.0(+0x7dd5) [0x7fb951c38dd5]
      /usr/lib64/libc.so.6(clone+0x6d) [0x7fb94f982ead]

      Logs attached for both PXB2.4 and PXB8.0.

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                sergei.glushchenko Sergei Glushchenko
                Reporter:
                manish.chawla Manish Chawla
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 1 week, 3 days, 7 hours, 20 minutes
                  1w 3d 7h 20m