Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-17520 Instant ALTER TABLE for failure-free column type changes
  3. MDEV-17927

Assertion `!field_map_it->is_dropped()' failed in dict_table_t::init_instant

    XMLWordPrintable

Details

    Description

      --source include/have_innodb.inc
       
      CREATE TABLE t1 (d DATE NOT NULL) ENGINE=InnoDB;
      ALTER TABLE t1 ADD COLUMN f TEXT NOT NULL;
      INSERT INTO t1 VALUES ('2018-01-01','foo'),('2018-12-31','bar');
      ALTER TABLE t1 MODIFY COLUMN IF EXISTS f TEXT DEFAULT NULL;
      ALTER TABLE t1 ADD COLUMN i INT;
       
      # Cleanup
      DROP TABLE t1;
      

      bb-10.4-MDEV-17520 b6639a3cff

      mysqld: /data/src/bb-10.4-MDEV-17520/storage/innobase/handler/handler0alter.cc:173: void dict_table_t::init_instant(const dict_table_t&) [with bool replace_dropped = false]: Assertion `!field_map_it->is_dropped()' failed.
      181207 13:14:50 [ERROR] mysqld got signal 6 ;
       
      #7  0x00007fe7bb4a3ee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
      #8  0x00005586e47b1be6 in dict_table_t::init_instant<false> (this=0x7fe7600445b8, table=...) at /data/src/bb-10.4-MDEV-17520/storage/innobase/handler/handler0alter.cc:173
      #9  0x00005586e47a8394 in dict_table_t::prepare_instant (this=0x7fe7600445b8, old=..., col_map=0x7fe760044358, first_alter_pos=@0x7fe7600166c8: 0) at /data/src/bb-10.4-MDEV-17520/storage/innobase/handler/handler0alter.cc:318
      #10 0x00005586e47ad2db in ha_innobase_inplace_ctx::prepare_instant (this=0x7fe760016558) at /data/src/bb-10.4-MDEV-17520/storage/innobase/handler/handler0alter.cc:1059
      #11 0x00005586e4798227 in prepare_inplace_alter_table_dict (ha_alter_info=0x7fe7b47e6bb0, altered_table=0x7fe7600433f0, old_table=0x7fe76012e460, table_name=0x7fe7600a606d "t1", flags=33, flags2=80, fts_doc_id_col=18446744073709551615, add_fts_doc_id=false, add_fts_doc_id_idx=false) at /data/src/bb-10.4-MDEV-17520/storage/innobase/handler/handler0alter.cc:6517
      #12 0x00005586e479d124 in ha_innobase::prepare_inplace_alter_table (this=0x7fe7600a7928, altered_table=0x7fe7600433f0, ha_alter_info=0x7fe7b47e6bb0) at /data/src/bb-10.4-MDEV-17520/storage/innobase/handler/handler0alter.cc:8064
      #13 0x00005586e4438cbb in handler::ha_prepare_inplace_alter_table (this=0x7fe7600a7928, altered_table=0x7fe7600433f0, ha_alter_info=0x7fe7b47e6bb0) at /data/src/bb-10.4-MDEV-17520/sql/handler.cc:4437
      #14 0x00005586e41fdd5c in mysql_inplace_alter_table (thd=0x7fe760000b00, table_list=0x7fe760014e90, table=0x7fe76012e460, altered_table=0x7fe7600433f0, ha_alter_info=0x7fe7b47e6bb0, inplace_supported=HA_ALTER_INPLACE_INSTANT, target_mdl_request=0x7fe7b47e6ce0, alter_ctx=0x7fe7b47e78d0) at /data/src/bb-10.4-MDEV-17520/sql/sql_table.cc:7515
      #15 0x00005586e4203f79 in mysql_alter_table (thd=0x7fe760000b00, new_db=0x7fe7600051b8, new_name=0x7fe760005588, create_info=0x7fe7b47e84c0, table_list=0x7fe760014e90, alter_info=0x7fe7b47e8400, order_num=0, order=0x0, ignore=false) at /data/src/bb-10.4-MDEV-17520/sql/sql_table.cc:9691
      #16 0x00005586e428e121 in Sql_cmd_alter_table::execute (this=0x7fe7600155e8, thd=0x7fe760000b00) at /data/src/bb-10.4-MDEV-17520/sql/sql_alter.cc:497
      #17 0x00005586e412be4a in mysql_execute_command (thd=0x7fe760000b00) at /data/src/bb-10.4-MDEV-17520/sql/sql_parse.cc:6290
      #18 0x00005586e4130d6e in mysql_parse (thd=0x7fe760000b00, rawbuf=0x7fe760014da8 "ALTER TABLE t1 ADD COLUMN i INT", length=31, parser_state=0x7fe7b47e9600, is_com_multi=false, is_next_command=false) at /data/src/bb-10.4-MDEV-17520/sql/sql_parse.cc:8092
      #19 0x00005586e411e05c in dispatch_command (command=COM_QUERY, thd=0x7fe760000b00, packet=0x7fe760093c91 "ALTER TABLE t1 ADD COLUMN i INT", packet_length=31, is_com_multi=false, is_next_command=false) at /data/src/bb-10.4-MDEV-17520/sql/sql_parse.cc:1851
      #20 0x00005586e411ca80 in do_command (thd=0x7fe760000b00) at /data/src/bb-10.4-MDEV-17520/sql/sql_parse.cc:1396
      #21 0x00005586e4288168 in do_handle_one_connection (connect=0x5586e784f570) at /data/src/bb-10.4-MDEV-17520/sql/sql_connect.cc:1402
      #22 0x00005586e4287eec in handle_one_connection (arg=0x5586e784f570) at /data/src/bb-10.4-MDEV-17520/sql/sql_connect.cc:1308
      #23 0x00005586e473c3e2 in pfs_spawn_thread (arg=0x5586e78d48f0) at /data/src/bb-10.4-MDEV-17520/storage/perfschema/pfs.cc:1862
      #24 0x00007fe7bcf5f494 in start_thread (arg=0x7fe7b47ea700) at pthread_create.c:333
      #25 0x00007fe7bb56093f in clone () from /lib/x86_64-linux-gnu/libc.so.6
      

      Not reproducible on recent 10.4 bb9b4182e41.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:

              Git Integration

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