Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-3841 LevelDB storage engine
  3. MDEV-3959

Assertion `slice->size() == table->s->reclength' fails in ha_leveldb::convert_record_from_storage_format(le veldb::Slice*) on accessing a table after ALTER

    XMLWordPrintable

Details

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

    Description

      CREATE TABLE t5 (a INT, leveldb_pk INT PRIMARY KEY) ENGINE=LevelDB;
      INSERT INTO t5 VALUES (1,1),(5,2);
      ALTER TABLE t5 DROP COLUMN a;
      SELECT * FROM t5;

      mysqld: mysql-5.6-leveldb/storage/leveldb/ha_leveldb.cc:537: void ha_leveldb::convert_record_from_storage_format(le
      veldb::Slice*): Assertion `slice->size() == table->s->reclength' failed.
      mysqld got signal 6 ;

      #9  0xb73db167 in __assert_fail () from /lib/libc.so.6
      #10 0x0891b810 in ha_leveldb::convert_record_from_storage_format (this=0xb6a4d1f8, slice=0xa5b5876c) at mysql-5.6-leveldb/storage/leveldb/ha_leveldb.cc:537
      #11 0x0891c45b in ha_leveldb::rnd_next (this=0xb6a4d1f8, buf=0xb6a4d3b0 "\377") at mysql-5.6-leveldb/storage/leveldb/ha_leveldb.cc:808
      #12 0x0824e790 in handler::ha_rnd_next (this=0xb6a4d1f8, buf=0xb6a4d3b0 "\377") at mysql-5.6-leveldb/sql/handler.cc:2603
      #13 0x08514176 in rr_sequential (info=0xb6a40180) at mysql-5.6-leveldb/sql/records.cc:478
      #14 0x0837f5d3 in join_init_read_record (tab=0xb6a40134) at mysql-5.6-leveldb/sql/sql_executor.cc:2373
      #15 0x0837d024 in sub_select (join=0xb6a3f810, join_tab=0xb6a40134, end_of_records=false) at mysql-5.6-leveldb/sql/sql_executor.cc:1246
      #16 0x0837caf4 in do_select (join=0xb6a3f810) at mysql-5.6-leveldb/sql/sql_executor.cc:933
      #17 0x0837ad13 in JOIN::exec (this=0xb6a3f810) at mysql-5.6-leveldb/sql/sql_executor.cc:191
      #18 0x083cd635 in mysql_execute_select (thd=0xb137888, select_lex=0xb1393d0, free_join=true) at mysql-5.6-leveldb/sql/sql_select.cc:1085
      #19 0x083cd949 in mysql_select (thd=0xb137888, tables=0xb6a3f3b0, wild_num=1, fields=..., conds=0x0, order=0xb1394c4, group=0xb139460, having=0x0, select_options=2147748608, result=0xb6a3f7f8, unit=0xb138f78, select_lex=0xb1393d0) at mysql-5.6-leveldb/sql/sql_select.cc:1206
      #20 0x083cbcf0 in handle_select (thd=0xb137888, result=0xb6a3f7f8, setup_tables_done_option=0) at mysql-5.6-leveldb/sql/sql_select.cc:110
      #21 0x083ac29f in execute_sqlcom_select (thd=0xb137888, all_tables=0xb6a3f3b0) at mysql-5.6-leveldb/sql/sql_parse.cc:4982
      #22 0x083a5643 in mysql_execute_command (thd=0xb137888) at mysql-5.6-leveldb/sql/sql_parse.cc:2552
      #23 0x083ae4a8 in mysql_parse (thd=0xb137888, rawbuf=0xb6a3f260 "SELECT * FROM t5", length=16, parser_state=0xa5b59758) at mysql-5.6-leveldb/sql/sql_parse.cc:6097
      #24 0x083a2e8e in dispatch_command (command=COM_QUERY, thd=0xb137888, packet=0xb72dfd1 "", packet_length=16) at mysql-5.6-leveldb/sql/sql_parse.cc:1312
      #25 0x083a22be in do_command (thd=0xb137888) at mysql-5.6-leveldb/sql/sql_parse.cc:1036
      #26 0x08371c79 in do_handle_one_connection (thd_arg=0xb137888) at mysql-5.6-leveldb/sql/sql_connect.cc:969
      #27 0x08371822 in handle_one_connection (arg=0xb137888) at mysql-5.6-leveldb/sql/sql_connect.cc:885
      #28 0x08650697 in pfs_spawn_thread (arg=0xb6111f0) at mysql-5.6-leveldb/storage/perfschema/pfs.cc:1853
      #29 0xb772ee32 in start_thread () from /lib/libpthread.so.0
      #30 0xb749e8ee in clone () from /lib/libc.so.6

      revision-id: psergey@askmonty.org-20121221100948-jddqx7ndi0b0fovk
      date: 2012-12-21 14:09:48 +0400
      build-date: 2012-12-21 17:48:21 +0400
      revno: 4467
      branch: 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.