Uploaded image for project: 'Percona Server for MySQL'
  1. Percona Server for MySQL
  2. PS-5562

index_merge + partitioning + MyRocks crashes the server

Details

    • Bug
    • Status: Done
    • Medium
    • Resolution: Fixed
    • 8.0.15-5
    • 8.0.15-6, 5.7.26-29
    • MyRocks
    • None

    Description

      index_merge optimization crashes partitioned MyRocks table.

      How to repeat.

      1. Load the dump provided
      2. Run query 
        SELECT /*+ MRR(t1) */ `id` FROM `t1` WHERE `l` = 281523560 AND `dd` = 0 AND `e` = '' ;

         

      1. You will have a crash:
      14:10:47 UTC - mysqld got signal 11 ;
      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.
      Please help us make Percona Server better by reporting any
      bugs at https://bugs.percona.com/key_buffer_size=8388608
      read_buffer_size=131072
      max_used_connections=1
      max_threads=151
      thread_count=2
      connection_count=1
      It is possible that mysqld could use up to 
      key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 67949 K  bytes of memory
      Hope that's ok; if not, decrease some variables in the equation.Thread pointer: 0x7fb2ed417000
      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 = 7fb3278b0c00 thread_stack 0x46000
      /home/sveta.smirnova/opt/mysql/8.0.15/bin/mysqld(my_print_stacktrace(unsigned char*, unsigned long)+0x2e) [0x1cb922e]
      /home/sveta.smirnova/opt/mysql/8.0.15/bin/mysqld(handle_fatal_signal+0x413) [0xfc6733]
      /lib64/libpthread.so.0(+0xf5d0) [0x7fb32b4b25d0]
      /home/sveta.smirnova/opt/mysql/8.0.15/bin/mysqld(handler::get_ha_share_ptr()+0xb) [0xc5c84b]
      /home/sveta.smirnova/opt/mysql/8.0.15/bin/mysqld(native_part::Partition_base::get_share()+0x1d) [0xc48d8d]
      /home/sveta.smirnova/opt/mysql/8.0.15/bin/mysqld(native_part::Partition_base::init_part_share()+0x15) [0xc48e55]
      /home/sveta.smirnova/opt/mysql/8.0.15/bin/mysqld(native_part::Partition_base::open(char const*, int, unsigned int, dd::Table const*)+0x90) [0xc49160]
      /home/sveta.smirnova/opt/mysql/8.0.15/lib/mysql/plugin/ha_rocksdb.so(ha_rockspart::open(char const*, int, unsigned int, dd::Table const*)+0xf) [0x7fb2f7554d6f]
      /home/sveta.smirnova/opt/mysql/8.0.15/bin/mysqld(handler::ha_open(TABLE*, char const*, int, int, dd::Table const*)+0x53) [0xc55373]
      /home/sveta.smirnova/opt/mysql/8.0.15/lib/mysql/plugin/ha_rocksdb.so(ha_rockspart::clone(char const*, MEM_ROOT*)+0xfb) [0x7fb2f7554c9b]
      /home/sveta.smirnova/opt/mysql/8.0.15/bin/mysqld(QUICK_RANGE_SELECT::init_ror_merged_scan(bool)+0x7c) [0xd9511c]
      /home/sveta.smirnova/opt/mysql/8.0.15/bin/mysqld(QUICK_ROR_INTERSECT_SELECT::init_ror_merged_scan(bool)+0x7c) [0xd9535c]
      /home/sveta.smirnova/opt/mysql/8.0.15/bin/mysqld(QUICK_ROR_INTERSECT_SELECT::reset()+0x5b) [0xd93b1b]
      /home/sveta.smirnova/opt/mysql/8.0.15/bin/mysqld(IndexRangeScanIterator::Init()+0x2c) [0xddf39c]
      /home/sveta.smirnova/opt/mysql/8.0.15/bin/mysqld(sub_select(JOIN*, QEP_TAB*, bool)+0x26b) [0xe6897b]
      /home/sveta.smirnova/opt/mysql/8.0.15/bin/mysqld(JOIN::exec()+0x421) [0xe652a1]
      /home/sveta.smirnova/opt/mysql/8.0.15/bin/mysqld(Sql_cmd_dml::execute_inner(THD*)+0x104) [0xee9a54]
      /home/sveta.smirnova/opt/mysql/8.0.15/bin/mysqld(Sql_cmd_dml::execute(THD*)+0x2d1) [0xef16d1]
      /home/sveta.smirnova/opt/mysql/8.0.15/bin/mysqld(mysql_execute_command(THD*, bool)+0x27dc) [0xe9ff6c]
      /home/sveta.smirnova/opt/mysql/8.0.15/bin/mysqld(mysql_parse(THD*, Parser_state*, bool, bool)+0x3df) [0xea24bf]
      /home/sveta.smirnova/opt/mysql/8.0.15/bin/mysqld(dispatch_command(THD*, COM_DATA const*, enum_server_command)+0x2fa6) [0xea58e6]
      /home/sveta.smirnova/opt/mysql/8.0.15/bin/mysqld(do_command(THD*)+0x1f9) [0xea6429]
      /home/sveta.smirnova/opt/mysql/8.0.15/bin/mysqld() [0xfb7f98]
      /home/sveta.smirnova/opt/mysql/8.0.15/bin/mysqld() [0x1d604bf]
      /lib64/libpthread.so.0(+0x7dd5) [0x7fb32b4aadd5]
      /lib64/libc.so.6(clone+0x6d) [0x7fb32922fead]Trying to get some variables.
      Some pointers may be invalid and cause the dump to abort.
      Query (7fb2ea7f6028): SELECT /*+ MRR(t1) */ `id` FROM `t1`   WHERE `l` = 281523560 AND `dd` = 0 AND `e` = ''
      Connection ID (thread ID): 10
      Status: NOT_KILLED
      

      Attachments

        Activity

          People

            satya.bodapati Satya Bodapati
            sveta.smirnova Sveta Smirnova
            Votes:
            0 Vote for this issue
            Watchers:
            2 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 - 3 days, 7 hours, 36 minutes
                3d 7h 36m

                Smart Checklist