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

Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())' failed in Diagnostics_area::set_ok_status

    XMLWordPrintable

Details

    Description

      --source include/have_partition.inc
       
      CREATE OR REPLACE TABLE t1 (a INT, b INT) WITH SYSTEM VERSIONING;
      INSERT INTO t1 VALUES (1,10),(2,20),(3,30);
       
      UPDATE t1 SET b = 0;
      ALTER TABLE t1 PARTITION BY system_time INTERVAL 1 SECOND ( PARTITION p1 HISTORY, PARTITION p2 HISTORY, PARTITION p3 HISTORY, PARTITION pn CURRENT );
       
      SET AUTOCOMMIT=OFF;
      SELECT * FROM t1;
       
      --connect (con1,localhost,root,,test)
      SET lock_wait_timeout= 2;
      --error ER_LOCK_WAIT_TIMEOUT
      REPLACE INTO t1 (b) SELECT b FROM t1;
      DELETE FROM t1 WHERE a = 2;
      DELETE IGNORE FROM t1 WHERE a BETWEEN 1 AND 2;
      DELETE IGNORE FROM t1 WHERE a = 5;
       
      # Cleanup
      --disconnect con1
      --connection default
      DROP TABLE t1;
      

      bb-10.3-temporal a3a15126f26

      mysqld: /data/src/bb-10.3-temporal/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.
      171230 15:46:21 [ERROR] mysqld got signal 6 ;
       
      #7  0x00007f69ff4e2ee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
      #8  0x00005614e49510a0 in Diagnostics_area::set_ok_status (this=0x7f69dc005f28, affected_rows=0, last_insert_id=0, message=0x0) at /data/src/bb-10.3-temporal/sql/sql_error.cc:335
      #9  0x00005614e48fffa4 in my_ok (thd=0x7f69dc000b00, affected_rows_arg=0, id=0, message=0x0) at /data/src/bb-10.3-temporal/sql/sql_class.h:4732
      #10 0x00005614e4e24d85 in mysql_delete (thd=0x7f69dc000b00, table_list=0x7f69dc013978, conds=0x7f69dc014158, order_list=0x7f69dc005260, limit=18446744073709551615, options=0, result=0x0) at /data/src/bb-10.3-temporal/sql/sql_delete.cc:490
      #11 0x00005614e4990935 in mysql_execute_command (thd=0x7f69dc000b00) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:4905
      #12 0x00005614e499a3f6 in mysql_parse (thd=0x7f69dc000b00, rawbuf=0x7f69dc013888 "DELETE IGNORE FROM t1 WHERE a = 5", length=33, parser_state=0x7f69f97075f0, is_com_multi=false, is_next_command=false) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:7991
      #13 0x00005614e4987b97 in dispatch_command (command=COM_QUERY, thd=0x7f69dc000b00, packet=0x7f69dc00b151 "DELETE IGNORE FROM t1 WHERE a = 5", packet_length=33, is_com_multi=false, is_next_command=false) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:1825
      #14 0x00005614e49865cb in do_command (thd=0x7f69dc000b00) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:1370
      #15 0x00005614e4aee354 in do_handle_one_connection (connect=0x5614e7b2abe0) at /data/src/bb-10.3-temporal/sql/sql_connect.cc:1420
      #16 0x00005614e4aee0e1 in handle_one_connection (arg=0x5614e7b2abe0) at /data/src/bb-10.3-temporal/sql/sql_connect.cc:1326
      #17 0x00005614e4f88c5a in pfs_spawn_thread (arg=0x5614e7b33000) at /data/src/bb-10.3-temporal/storage/perfschema/pfs.cc:1863
      #18 0x00007f6a011b9494 in start_thread (arg=0x7f69f9708700) at pthread_create.c:333
      #19 0x00007f69ff59f93f in clone () from /lib/x86_64-linux-gnu/libc.so.6
      

      Reproducible with at least MyISAM and InnoDB.

      Attachments

        Activity

          People

            kevg Eugene Kosov (Inactive)
            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.