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

Assertion failure in Diagnostics_area::set_ok_status upon altering CONNECT table

    XMLWordPrintable

Details

    Description

      INSTALL SONAME 'ha_connect';
       
      CREATE TABLE t (f VARCHAR(8)) ENGINE=CONNECT FILE_NAME='tf';
      ALTER TABLE t FILE_NAME='tf2', ALGORITHM=COPY;
       
      # Cleanup
      DROP TABLE t;
      UNINSTALL SONAME 'ha_connect';
      

      10.4 ff3d4395

      mysqld: /data/src/10.4/sql/sql_error.cc:335: void Diagnostics_area::set_ok_status(ulonglong, ulonglong, const char*): Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())' failed.
      230323  1:35:10 [ERROR] mysqld got signal 6 ;
       
      #9  0x00007fb6ac974df2 in __GI___assert_fail (assertion=0x564fe5543dc0 "!is_set() || (m_status == DA_OK_BULK && is_bulk_op())", file=0x564fe5543a40 "/data/src/10.4/sql/sql_error.cc", line=335, function=0x564fe5543e20 "void Diagnostics_area::set_ok_status(ulonglong, ulonglong, const char*)") at ./assert/assert.c:101
      #10 0x0000564fe3438489 in Diagnostics_area::set_ok_status (this=0x62b000060c58, affected_rows=0, last_insert_id=0, message=0x7fb6a4c79f00 "Records: 0  Duplicates: 0  Warnings: 1") at /data/src/10.4/sql/sql_error.cc:335
      #11 0x0000564fe33553d9 in my_ok (thd=0x62b00005b208, affected_rows_arg=0, id=0, message=0x7fb6a4c79f00 "Records: 0  Duplicates: 0  Warnings: 1") at /data/src/10.4/sql/sql_class.h:5158
      #12 0x0000564fe340d802 in THD::my_ok_with_recreate_info (this=0x62b00005b208, info=..., warn_count=1) at /data/src/10.4/sql/sql_class.cc:7951
      #13 0x0000564fe3781d2d in mysql_alter_table (thd=0x62b00005b208, new_db=0x62b00005fa10, new_name=0x62b00005fe68, create_info=0x7fb6a4c7d250, table_list=0x62b000062358, recreate_info=0x7fb6a4c7d0b0, alter_info=0x7fb6a4c7d150, order_num=0, order=0x0, ignore=false) at /data/src/10.4/sql/sql_table.cc:10692
      #14 0x0000564fe3902cbc in Sql_cmd_alter_table::execute (this=0x62b000062ae8, thd=0x62b00005b208) at /data/src/10.4/sql/sql_alter.cc:531
      #15 0x0000564fe3516999 in mysql_execute_command (thd=0x62b00005b208) at /data/src/10.4/sql/sql_parse.cc:6197
      #16 0x0000564fe3522104 in mysql_parse (thd=0x62b00005b208, rawbuf=0x62b000062228 "ALTER TABLE t FILE_NAME='tf2', ALGORITHM=COPY", length=45, parser_state=0x7fb6a4c7f860, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:7986
      #17 0x0000564fe34f87c9 in dispatch_command (command=COM_QUERY, thd=0x62b00005b208, packet=0x62900023f209 "ALTER TABLE t FILE_NAME='tf2', ALGORITHM=COPY", packet_length=45, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:1857
      #18 0x0000564fe34f5351 in do_command (thd=0x62b00005b208) at /data/src/10.4/sql/sql_parse.cc:1378
      #19 0x0000564fe38ea680 in do_handle_one_connection (connect=0x6080000009a8) at /data/src/10.4/sql/sql_connect.cc:1420
      #20 0x0000564fe38e9f97 in handle_one_connection (arg=0x6080000009a8) at /data/src/10.4/sql/sql_connect.cc:1324
      #21 0x0000564fe453a08a in pfs_spawn_thread (arg=0x615000003508) at /data/src/10.4/storage/perfschema/pfs.cc:1869
      #22 0x00007fb6ac9c8fd4 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
      #23 0x00007fb6aca4966c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
      

      Non-debug error is

      10.4 e9dc3957

      mysqltest: At line 4: query 'ALTER TABLE t FILE_NAME='tf2', ALGORITHM=COPY' failed: 1105: Open(rb) error 2 on /dev/shm/var_auto__Ea9/mysqld.1/data/./test/tf: No such file or directory
      

      Attachments

        Activity

          People

            TheLinuxJedi Andrew Hutchings
            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.