Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-17841 S3 Storage engine
  3. MDEV-19461

Assertion failure upon altering temporary S3 table

    XMLWordPrintable

Details

    Description

      create temporary table t1 (a int);
      alter table t1 engine=S3;
      alter table t1 add b int;
      

      maria-s3 a9499a38

      2019-05-14  0:51:37 4 [Warning] Could not remove temporary table: '/data/bld/maria-s3/mysql-test/var/tmp/mysqld.1/#sql6eec_4_1', error: 155
      mysqld: /data/src/maria-s3/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.
      190514  0:51:37 [ERROR] mysqld got signal 6 ;
       
      #5  0x00007f9c06ec142a in __GI_abort () at abort.c:89
      #6  0x00007f9c06eb8e67 in __assert_fail_base (fmt=<optimized out>, assertion=assertion@entry=0x55cbc5f2d278 "!is_set() || (m_status == DA_OK_BULK && is_bulk_op())", file=file@entry=0x55cbc5f2d1b0 "/data/src/maria-s3/sql/sql_error.cc", line=line@entry=335, function=function@entry=0x55cbc5f2d5a0 <Diagnostics_area::set_ok_status(unsigned long long, unsigned long long, char const*)::__PRETTY_FUNCTION__> "void Diagnostics_area::set_ok_status(ulonglong, ulonglong, const char*)") at assert.c:92
      #7  0x00007f9c06eb8f12 in __GI___assert_fail (assertion=0x55cbc5f2d278 "!is_set() || (m_status == DA_OK_BULK && is_bulk_op())", file=0x55cbc5f2d1b0 "/data/src/maria-s3/sql/sql_error.cc", line=335, function=0x55cbc5f2d5a0 <Diagnostics_area::set_ok_status(unsigned long long, unsigned long long, char const*)::__PRETTY_FUNCTION__> "void Diagnostics_area::set_ok_status(ulonglong, ulonglong, const char*)") at assert.c:101
      #8  0x000055cbc52dc2dd in Diagnostics_area::set_ok_status (this=0x7f9bd80064c0, affected_rows=0, last_insert_id=0, message=0x7f9bf94aa190 "Records: 0  Duplicates: 0  Warnings: 1") at /data/src/maria-s3/sql/sql_error.cc:335
      #9  0x000055cbc5284272 in my_ok (thd=0x7f9bd8000b10, affected_rows_arg=0, id=0, message=0x7f9bf94aa190 "Records: 0  Duplicates: 0  Warnings: 1") at /data/src/maria-s3/sql/sql_class.h:4994
      #10 0x000055cbc54178ca in mysql_alter_table (thd=0x7f9bd8000b10, new_db=0x7f9bd80052b0, new_name=0x7f9bd80056b8, create_info=0x7f9bf94aacf0, table_list=0x7f9bd80131e8, alter_info=0x7f9bf94aac30, order_num=0, order=0x0, ignore=false) at /data/src/maria-s3/sql/sql_table.cc:10381
      #11 0x000055cbc54a6fa9 in Sql_cmd_alter_table::execute (this=0x7f9bd80139b8, thd=0x7f9bd8000b10) at /data/src/maria-s3/sql/sql_alter.cc:496
      #12 0x000055cbc53370cc in mysql_execute_command (thd=0x7f9bd8000b10) at /data/src/maria-s3/sql/sql_parse.cc:6340
      #13 0x000055cbc533c3dd in mysql_parse (thd=0x7f9bd8000b10, rawbuf=0x7f9bd8013108 "alter table t1 add b int", length=24, parser_state=0x7f9bf94ac180, is_com_multi=false, is_next_command=false) at /data/src/maria-s3/sql/sql_parse.cc:8152
      #14 0x000055cbc5327a67 in dispatch_command (command=COM_QUERY, thd=0x7f9bd8000b10, packet=0x7f9bd8119631 "", packet_length=24, is_com_multi=false, is_next_command=false) at /data/src/maria-s3/sql/sql_parse.cc:1829
      #15 0x000055cbc5326227 in do_command (thd=0x7f9bd8000b10) at /data/src/maria-s3/sql/sql_parse.cc:1362
      #16 0x000055cbc549df2d in do_handle_one_connection (connect=0x55cbc92fa260) at /data/src/maria-s3/sql/sql_connect.cc:1398
      #17 0x000055cbc549dc91 in handle_one_connection (arg=0x55cbc92fa260) at /data/src/maria-s3/sql/sql_connect.cc:1301
      #18 0x000055cbc5dd307b in pfs_spawn_thread (arg=0x55cbc926bbd0) at /data/src/maria-s3/storage/perfschema/pfs.cc:1862
      #19 0x00007f9c092944a4 in start_thread (arg=0x7f9bf94ad700) at pthread_create.c:456
      #20 0x00007f9c06f75d0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97
      

      Attachments

        Issue Links

          Activity

            People

              monty Michael Widenius
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.