Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-4201 LevelDB Storage Engine MS2
  3. MDEV-4305

LevelDB: Assertion `((keypart_map + 1) & keypart_map) == 0' fails in calculate_key_len

    XMLWordPrintable

Details

    • Technical task
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      CREATE TABLE t1 (pk1 INT, pk2 CHAR(32), i INT, PRIMARY KEY(pk1,pk2), KEY(i)) ENGINE=LevelDB;
      INSERT INTO t1 VALUES (1,'test1',6),(2,'test2',8);
      SELECT * FROM t1 WHERE i != 3 OR  pk1 > 9;

      mysql-5.6-leveldb/sql/table.cc:3070: uint calculate_key_len(TABLE*, uint, const uchar*, key_part_map): Assertion `((keypart_map + 1) & keypart_map) == 0' failed.
      mysqld got signal 6 ;

      #7  0x00007f3b2fc5f192 in __GI___assert_fail (assertion=0xf304a8 "((keypart_map + 1) & keypart_map) == 0", file=0xf2fcb0 "mysql-5.6-leveldb/sql/table.cc", line=3070, function=0xf32020 "uint calculate_key_len(TABLE*, uint, const uchar*, key_part_map)") at assert.c:103
      #8  0x000000000085a79a in calculate_key_len (table=0x7f3b0c0158f0, key=0, buf=0x7f3b0c0373e0 "\001", keypart_map=2) at mysql-5.6-leveldb/sql/table.cc:3070
      #9  0x0000000000b0a152 in LDBSE_KEYDEF::pack_index_tuple (this=0x7f3b0c014eb0, tbl=0x7f3b0c0158f0, packed_tuple=0x7f3b0c00ca60 "\v", key_tuple=0x7f3b0c0373e0 "\001", keypart_map=2) at mysql-5.6-leveldb/storage/leveldb/ldb_datadic.cc:179
      #10 0x0000000000b053b5 in ha_leveldb::index_read_map (this=0x7f3b0c0592a0, buf=0x7f3b0c059598 "\377", key=0x7f3b0c0373e0 "\001", keypart_map=2, find_flag=HA_READ_KEY_EXACT) at mysql-5.6-leveldb/storage/leveldb/ha_leveldb.cc:1195
      #11 0x0000000000b07a8c in ha_leveldb::rnd_pos (this=0x7f3b0c0592a0, buf=0x7f3b0c059598 "\377", pos=0x7f3b0c0373e0 "\001") at mysql-5.6-leveldb/storage/leveldb/ha_leveldb.cc:2042
      #12 0x000000000061a102 in handler::ha_rnd_pos (this=0x7f3b0c0592a0, buf=0x7f3b0c059598 "\377", pos=0x7f3b0c0373e0 "\001") at mysql-5.6-leveldb/sql/handler.cc:2629
      #13 0x000000000093ae12 in rr_from_pointers (info=0x7f3b0c0b9520) at mysql-5.6-leveldb/sql/records.cc:552
      #14 0x0000000000921f85 in QUICK_INDEX_MERGE_SELECT::get_next (this=0x7f3b0c0b9470) at mysql-5.6-leveldb/sql/opt_range.cc:9969
      #15 0x000000000093a952 in rr_quick (info=0x7f3b0c03d8c8) at mysql-5.6-leveldb/sql/records.cc:367
      #16 0x0000000000775c07 in join_init_read_record (tab=0x7f3b0c03d838) at mysql-5.6-leveldb/sql/sql_executor.cc:2388
      #17 0x0000000000773477 in sub_select (join=0x7f3b0c005fd8, join_tab=0x7f3b0c03d838, end_of_records=false) at mysql-5.6-leveldb/sql/sql_executor.cc:1249
      #18 0x0000000000772f11 in do_select (join=0x7f3b0c005fd8) at mysql-5.6-leveldb/sql/sql_executor.cc:936
      #19 0x0000000000770f5e in JOIN::exec (this=0x7f3b0c005fd8) at mysql-5.6-leveldb/sql/sql_executor.cc:191
      #20 0x00000000007cbb85 in mysql_execute_select (thd=0x28b9740, select_lex=0x28bbf20, free_join=true) at mysql-5.6-leveldb/sql/sql_select.cc:1100
      #21 0x00000000007cbe6a in mysql_select (thd=0x28b9740, tables=0x7f3b0c0051f0, wild_num=1, fields=..., conds=0x7f3b0c005e00, order=0x28bc0e8, group=0x28bc020, having=0x0, select_options=2147748608, result=0x7f3b0c005fb0, unit=0x28bb8e0, select_lex=0x28bbf20) at mysql-5.6-leveldb/sql/sql_select.cc:1221
      #22 0x00000000007c9fba in handle_select (thd=0x28b9740, result=0x7f3b0c005fb0, setup_tables_done_option=0) at mysql-5.6-leveldb/sql/sql_select.cc:110
      #23 0x00000000007a6782 in execute_sqlcom_select (thd=0x28b9740, all_tables=0x7f3b0c0051f0) at mysql-5.6-leveldb/sql/sql_parse.cc:4987
      #24 0x000000000079f5f4 in mysql_execute_command (thd=0x28b9740) at mysql-5.6-leveldb/sql/sql_parse.cc:2557
      #25 0x00000000007a8be7 in mysql_parse (thd=0x28b9740, rawbuf=0x7f3b0c004fd0 "SELECT * FROM t1 WHERE i != 3 OR  pk1 > 9", length=41, parser_state=0x7f3b2c100110) at mysql-5.6-leveldb/sql/sql_parse.cc:6117
      #26 0x000000000079c9a3 in dispatch_command (command=COM_QUERY, thd=0x28b9740, packet=0x298cca1 "", packet_length=41) at mysql-5.6-leveldb/sql/sql_parse.cc:1312
      #27 0x000000000079bb66 in do_command (thd=0x28b9740) at mysql-5.6-leveldb/sql/sql_parse.cc:1036
      #28 0x0000000000766e09 in do_handle_one_connection (thd_arg=0x28b9740) at mysql-5.6-leveldb/sql/sql_connect.cc:969
      #29 0x000000000076682e in handle_one_connection (arg=0x28b9740) at mysql-5.6-leveldb/sql/sql_connect.cc:885
      #30 0x0000000000af6924 in pfs_spawn_thread (arg=0x280e920) at mysql-5.6-leveldb/storage/perfschema/pfs.cc:1853
      #31 0x00007f3b30808e9a in start_thread (arg=0x7f3b2c101700) at pthread_create.c:308

      revision-id: psergey@askmonty.org-20130319094846-yze9xy3qeb5g6hrc
      revno: 4610
      branch-nick: mysql-5.6-leveldb

      Attachments

        Activity

          People

            psergei Sergei Petrunia
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.