Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-18173

Assertion `o->ind == vers_end' or `o->ind == vers_start' failed in dict_table_t::instant_column

    XMLWordPrintable

    Details

      Description

      --source include/have_innodb.inc
       
      CREATE TABLE t1 (
        pk INTEGER,
        a INT,
        b INT,
        v INT AS (a),
        PRIMARY KEY (pk)
      ) ENGINE=InnoDB WITH SYSTEM VERSIONING;
       
      SET system_versioning_alter_history= KEEP;
      ALTER TABLE t1 FORCE;
      ALTER TABLE t1 DROP COLUMN b;
       
      # Cleanup
      DROP TABLE t1;
      

      10.4 30da40bb8c30

      mysqld: /data/src/10.4/storage/innobase/handler/handler0alter.cc:546: bool dict_table_t::instant_column(const dict_table_t&, const ulint*): Assertion `o->ind == vers_end' failed.
      190109  0:35:10 [ERROR] mysqld got signal 6 ;
       
      #7  0x00007fb8517b7ee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
      #8  0x000055b846cb936c in dict_table_t::instant_column (this=0x7fb7f804b018, table=..., col_map=0x7fb7f805f9d0) at /data/src/10.4/storage/innobase/handler/handler0alter.cc:546
      #9  0x000055b846cbbe1d in ha_innobase_inplace_ctx::instant_column (this=0x7fb7f8016e90) at /data/src/10.4/storage/innobase/handler/handler0alter.cc:1080
      #10 0x000055b846ca1ecd in innobase_instant_try (ha_alter_info=0x7fb84c147bc0, ctx=0x7fb7f8016e90, altered_table=0x7fb7f805c550, table=0x7fb7f804b9a0, trx=0x7fb847400218) at /data/src/10.4/storage/innobase/handler/handler0alter.cc:5471
      #11 0x000055b846cbe5d3 in commit_try_norebuild (ha_alter_info=0x7fb84c147bc0, ctx=0x7fb7f8016e90, altered_table=0x7fb7f805c550, old_table=0x7fb7f804b9a0, trx=0x7fb847400218, table_name=0x7fb7f804e32d "t1") at /data/src/10.4/storage/innobase/handler/handler0alter.cc:10138
      #12 0x000055b846cb0e98 in ha_innobase::commit_inplace_alter_table (this=0x7fb7f81324d8, altered_table=0x7fb7f805c550, ha_alter_info=0x7fb84c147bc0, commit=true) at /data/src/10.4/storage/innobase/handler/handler0alter.cc:10767
      #13 0x000055b84694136c in handler::ha_commit_inplace_alter_table (this=0x7fb7f81324d8, altered_table=0x7fb7f805c550, ha_alter_info=0x7fb84c147bc0, commit=true) at /data/src/10.4/sql/handler.cc:4492
      #14 0x000055b846700c1e in mysql_inplace_alter_table (thd=0x7fb7f8000b00, table_list=0x7fb7f8015080, table=0x7fb7f804b9a0, altered_table=0x7fb7f805c550, ha_alter_info=0x7fb84c147bc0, inplace_supported=HA_ALTER_INPLACE_INSTANT, target_mdl_request=0x7fb84c147cf0, alter_ctx=0x7fb84c1488e0) at /data/src/10.4/sql/sql_table.cc:7590
      #15 0x000055b846706a7f in mysql_alter_table (thd=0x7fb7f8000b00, new_db=0x7fb7f80051c8, new_name=0x7fb7f8005598, create_info=0x7fb84c1494d0, table_list=0x7fb7f8015080, alter_info=0x7fb84c149410, order_num=0, order=0x0, ignore=false) at /data/src/10.4/sql/sql_table.cc:9690
      #16 0x000055b8467910fd in Sql_cmd_alter_table::execute (this=0x7fb7f80156e8, thd=0x7fb7f8000b00) at /data/src/10.4/sql/sql_alter.cc:497
      #17 0x000055b84662e398 in mysql_execute_command (thd=0x7fb7f8000b00) at /data/src/10.4/sql/sql_parse.cc:6302
      #18 0x000055b8466332c4 in mysql_parse (thd=0x7fb7f8000b00, rawbuf=0x7fb7f8014f98 "ALTER TABLE t1 DROP COLUMN b", length=28, parser_state=0x7fb84c14a600, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:8104
      #19 0x000055b8466204ee in dispatch_command (command=COM_QUERY, thd=0x7fb7f8000b00, packet=0x7fb7f8137fd1 "ALTER TABLE t1 DROP COLUMN b", packet_length=28, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:1851
      #20 0x000055b84661ef12 in do_command (thd=0x7fb7f8000b00) at /data/src/10.4/sql/sql_parse.cc:1396
      #21 0x000055b84678b140 in do_handle_one_connection (connect=0x55b84a5e54c0) at /data/src/10.4/sql/sql_connect.cc:1402
      #22 0x000055b84678aec4 in handle_one_connection (arg=0x55b84a5e54c0) at /data/src/10.4/sql/sql_connect.cc:1308
      #23 0x000055b846c4a308 in pfs_spawn_thread (arg=0x55b84a5e0460) at /data/src/10.4/storage/perfschema/pfs.cc:1862
      #24 0x00007fb853273494 in start_thread (arg=0x7fb84c14b700) at pthread_create.c:333
      #25 0x00007fb85187493f in clone () from /lib/x86_64-linux-gnu/libc.so.6
      

      Not reproducible on 10.3.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              marko Marko Mäkelä
              Reporter:
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: