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

Assertion `row_start_field' failed in vers_prepare_keys upon ALTER TABLE

    XMLWordPrintable

Details

    Description

      CREATE OR REPLACE TABLE t1 (f1 INT) WITH SYSTEM VERSIONING;
      SET system_versioning_alter_history=KEEP;
      ALTER TABLE t1 ADD f2 INT WITH SYSTEM VERSIONING, DROP SYSTEM VERSIONING;
       
      # Cleanup
      DROP TABLE t1;
      

      10.3 ed661a0e

      mysqld: /data/src/10.3/sql/sql_table.cc:4424: bool vers_prepare_keys(THD*, HA_CREATE_INFO*, Alter_info*, KEY**, uint): Assertion `row_start_field' failed.
      190401 20:50:02 [ERROR] mysqld got signal 6 ;
       
      #7  0x00007fe118602ee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
      #8  0x000055b7739f1dbc in vers_prepare_keys (thd=0x7fe100000b00, create_info=0x7fe1127a7ca0, alter_info=0x7fe1127a7be0, key_info=0x7fe1127a6680, key_count=32737) at /data/src/10.3/sql/sql_table.cc:4424
      #9  0x000055b7739f2ab7 in mysql_create_frm_image (thd=0x7fe100000b00, db=0x7fe1127a70c0, table_name=0x7fe1127a70d0, create_info=0x7fe1127a7ca0, alter_info=0x7fe1127a7be0, create_table_mode=-2, key_info=0x7fe1127a6680, key_count=0x7fe1127a6644, frm=0x7fe1127a6700) at /data/src/10.3/sql/sql_table.cc:4696
      #10 0x000055b7739f3564 in create_table_impl (thd=0x7fe100000b00, orig_db=0x7fe1127a70c0, orig_table_name=0x7fe1127a70d0, db=0x7fe1127a70f0, table_name=0x7fe1127a7120, path=0x7fe1127a791d "./test/#sql-1deb_4", options=..., create_info=0x7fe1127a7ca0, alter_info=0x7fe1127a7be0, create_table_mode=-2, is_trans=0x0, key_info=0x7fe1127a6680, key_count=0x7fe1127a6644, frm=0x7fe1127a6700) at /data/src/10.3/sql/sql_table.cc:4950
      #11 0x000055b773a001dc in mysql_alter_table (thd=0x7fe100000b00, new_db=0x7fe1000051d0, new_name=0x7fe100005590, create_info=0x7fe1127a7ca0, table_list=0x7fe100014e28, alter_info=0x7fe1127a7be0, order_num=0, order=0x0, ignore=false) at /data/src/10.3/sql/sql_table.cc:9630
      #12 0x000055b773a88930 in Sql_cmd_alter_table::execute (this=0x7fe100015590, thd=0x7fe100000b00) at /data/src/10.3/sql/sql_alter.cc:494
      #13 0x000055b7739294f8 in mysql_execute_command (thd=0x7fe100000b00) at /data/src/10.3/sql/sql_parse.cc:6285
      #14 0x000055b77392e59d in mysql_parse (thd=0x7fe100000b00, rawbuf=0x7fe100014ce8 "ALTER TABLE t1 ADD f2 INT WITH SYSTEM VERSIONING, DROP SYSTEM VERSIONING", length=72, parser_state=0x7fe1127a95f0, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:8091
      #15 0x000055b77391b86c in dispatch_command (command=COM_QUERY, thd=0x7fe100000b00, packet=0x7fe10000b1f1 "ALTER TABLE t1 ADD f2 INT WITH SYSTEM VERSIONING, DROP SYSTEM VERSIONING", packet_length=72, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:1857
      #16 0x000055b77391a256 in do_command (thd=0x7fe100000b00) at /data/src/10.3/sql/sql_parse.cc:1403
      #17 0x000055b773a82eef in do_handle_one_connection (connect=0x55b7761ce0f0) at /data/src/10.3/sql/sql_connect.cc:1402
      #18 0x000055b773a82c73 in handle_one_connection (arg=0x55b7761ce0f0) at /data/src/10.3/sql/sql_connect.cc:1308
      #19 0x000055b773f1f589 in pfs_spawn_thread (arg=0x55b776112f90) at /data/src/10.3/storage/perfschema/pfs.cc:1862
      #20 0x00007fe11a4f1494 in start_thread (arg=0x7fe1127aa700) at pthread_create.c:333
      #21 0x00007fe1186bf93f in clone () from /lib/x86_64-linux-gnu/libc.so.6
      

      Reproducible with at least MyISAM and InnoDB.

      Attachments

        Activity

          People

            midenok Aleksey Midenkov
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.