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

Create and drop index causes a crash in prepare

    Details

    • Type: Bug
    • Status: Done
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: 8.0.4
    • Fix Version/s: 8.0.5
    • Component/s: None
    • Labels:
      None

      Description

      Start PS8.0.13-3 server.
      Create initial data with sysbench

      num_tables=10
      table_size=1000
      
      sysbench /usr/share/sysbench/oltp_insert.lua --tables=${num_tables} --table-size=${table_size} --mysql-db=test --mysql-user=root --threads=100 --db-driver=mysql --mysql-socket=${mysqldir}/socket.sock prepare

      Run a load of following sql

      ${mysqldir}/bin/mysql -uroot -S${mysqldir}/socket.sock -e "CREATE INDEX kc on test.sbtest1 (k,c);" >/dev/null 2>&1
      ${mysqldir}/bin/mysql -uroot -S${mysqldir}/socket.sock -e "DROP INDEX kc on test.sbtest1;" >/dev/null 2>&1

      Take full backup with --lock-ddl

      ${xtrabackup_dir}/xtrabackup --user=root --password='' --backup --target-dir=${backup_dir}/full -S ${mysqldir}/socket.sock --datadir=${datadir} --lock-ddl

      Run a load with sysbench

      sysbench /usr/share/sysbench/oltp_insert.lua --tables=${num_tables} --mysql-db=test --mysql-user=root --threads=50 --db-driver=mysql --mysql-socket=${mysqldir}/socket.sock --time=20 run >/dev/null 2>&1 &

      Take incremental backup with --lock-ddl

      ${xtrabackup_dir}/xtrabackup --user=root --password='' --backup --target-dir=${backup_dir}/inc --incremental-basedir=${backup_dir}/full -S ${mysqldir}/socket.sock --datadir=${datadir} --lock-ddl

      Prepare full backup

      ${xtrabackup_dir}/xtrabackup --user=root --password='' --prepare --apply-log-only --target_dir=${backup_dir}/full

      Prepare incremental backup

      ${xtrabackup_dir}/xtrabackup --user=root --password='' --prepare --target_dir=${backup_dir}/full --incremental-dir=${backup_dir}/inc

      Prepare logs display a crash:

      [FATAL] is_short 0, info_and_status_bits 0, offset 1230, o_offset 6, mismatch index 18446744073709551500, end_seg_len 130 parsed len 4
      InnoDB: Assertion failure: ut0ut.cc:631
      InnoDB: thread 139937165387520InnoDB: 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.
      13:19:28 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...
      stack_bottom = 0 thread_stack 0x46000
      /home/mchawla/pxb_8_0_debug_build_GA/bin/xtrabackup(my_print_stacktrace(unsigned char*, unsigned long)+0x43) [0x4519e6f]
      /home/mchawla/pxb_8_0_debug_build_GA/bin/xtrabackup(handle_fatal_signal+0x3f5) [0x3143bc6]
      /usr/lib64/libpthread.so.0(+0xf5d0) [0x7f45ae0675d0]
      /usr/lib64/libc.so.6(gsignal+0x37) [0x7f45abce2207]
      /usr/lib64/libc.so.6(abort+0x148) [0x7f45abce38f8]
      /home/mchawla/pxb_8_0_debug_build_GA/bin/xtrabackup() [0x36bd193]
      /home/mchawla/pxb_8_0_debug_build_GA/bin/xtrabackup(ib::fatal::~fatal()+0) [0x36c04c4]
      /home/mchawla/pxb_8_0_debug_build_GA/bin/xtrabackup(page_cur_parse_insert_rec(unsigned long, unsigned char const*, unsigned char const*, buf_block_t*, dict_index_t*, mtr_t*)+0x705) [0x3562c1d]
      /home/mchawla/pxb_8_0_debug_build_GA/bin/xtrabackup() [0x3523a68]
      /home/mchawla/pxb_8_0_debug_build_GA/bin/xtrabackup(recv_recover_page_func(bool, buf_block_t*)+0x63e) [0x35254e0]
      /home/mchawla/pxb_8_0_debug_build_GA/bin/xtrabackup(buf_page_io_complete(buf_page_t*, bool)+0x63b) [0x32caea7]
      /home/mchawla/pxb_8_0_debug_build_GA/bin/xtrabackup(fil_aio_wait(unsigned long)+0x1ae) [0x3390b03]
      /home/mchawla/pxb_8_0_debug_build_GA/bin/xtrabackup() [0x36457f0]
      /home/mchawla/pxb_8_0_debug_build_GA/bin/xtrabackup(void std::_Bind<void (*(unsigned long))(unsigned long)>::__call<void, , 0ul>(std::tuple<>&&, std::_Index_tuple<0ul>)+0x46) [0x2afa3ba]
      /home/mchawla/pxb_8_0_debug_build_GA/bin/xtrabackup(void std::_Bind<void (*(unsigned long))(unsigned long)>::operator()<, void>()+0x28) [0x2afa0a4]
      /home/mchawla/pxb_8_0_debug_build_GA/bin/xtrabackup(void Runnable::operator()<void (*)(unsigned long), unsigned long>(void (*&&)(unsigned long), unsigned long&&)+0x5d) [0x2af9de7]
      /home/mchawla/pxb_8_0_debug_build_GA/bin/xtrabackup(void std::_Bind_simple<Runnable (void (*)(unsigned long), unsigned long)>::_M_invoke<0ul, 1ul>(std::_Index_tuple<0ul, 1ul>)+0x5f) [0x2af9bf1]
      /home/mchawla/pxb_8_0_debug_build_GA/bin/xtrabackup(std::_Bind_simple<Runnable (void (*)(unsigned long), unsigned long)>::operator()()+0x1b) [0x2af97d5]
      /home/mchawla/pxb_8_0_debug_build_GA/bin/xtrabackup(std::thread::_Impl<std::_Bind_simple<Runnable (void (*)(unsigned long), unsigned long)> >::_M_run()+0x1c) [0x2af9424]
      /usr/lib64/libstdc++.so.6(+0xb5070) [0x7f45ac646070]
      /usr/lib64/libpthread.so.0(+0x7dd5) [0x7f45ae05fdd5]
      /usr/lib64/libc.so.6(clone+0x6d) [0x7f45abda9ead]
      Please report a bug at https://jira.percona.com/projects/PXB

      Logs attached: prepare_inc_backup_25_01_2019_19_log.crash.index

        Smart Checklist

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days, 51 minutes
                  2d 51m