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

Spider: Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())' failed in Diagnostics_area::set_ok_status upon CREATE OR REPLACE TABLE

    XMLWordPrintable

Details

    Description

      --source include/have_innodb.inc
      --source include/have_partition.inc
      INSTALL PLUGIN Spider SONAME 'ha_spider.so';
      CREATE TABLE t (c INT) ENGINE=InnoDB;
      LOCK TABLES t WRITE;
      CREATE OR REPLACE TABLE t (d INT) ENGINE=Spider PARTITION BY LIST COLUMNS (d) (PARTITION p VALUES IN (0));
      

      Leads to:

      11.5.0 3f9182126c64bcec359bebe9ebad2a0e559b13e2 (Debug)

      mariadbd: /test/11.5_dbg/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.
      

      11.5.0 3f9182126c64bcec359bebe9ebad2a0e559b13e2 (Debug)

      Core was generated by `/test/MD240424-mariadb-11.5.0-linux-x86_64-dbg/bin/mariadbd --no-defaults --max'.
      Program terminated with signal SIGABRT, Aborted.
      #0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>)at ./nptl/pthread_kill.c:44
      Download failed: Invalid argument.  Continuing without source file ./nptl/./nptl/pthread_kill.c.
      44	./nptl/pthread_kill.c: Inappropriate ioctl for device.
      [Current thread is 1 (LWP 3086871)]
      (gdb) bt
      #0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>)at ./nptl/pthread_kill.c:44
      #1  __pthread_kill_internal (signo=6, threadid=<optimized out>)at ./nptl/pthread_kill.c:78
      #2  __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6)at ./nptl/pthread_kill.c:89
      #3  0x0000153b2523c406 in __GI_raise (sig=sig@entry=6)at ../sysdeps/posix/raise.c:26
      #4  0x0000153b2522287c in __GI_abort () at ./stdlib/abort.c:79
      #5  0x0000153b2522279b in __assert_fail_base (fmt=0x153b253b9f68 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x557ed0ff8d60 "!is_set() || (m_status == DA_OK_BULK && is_bulk_op())", file=file@entry=0x557ed0ff8c40 "/test/11.5_dbg/sql/sql_error.cc", line=line@entry=335, function=function@entry=0x557ed0ff8d98 "void Diagnostics_area::set_ok_status(ulonglong, ulonglong, const char*)") at ./assert/assert.c:92
      #6  0x0000153b25233b86 in __assert_fail (assertion=0x557ed0ff8d60 "!is_set() || (m_status == DA_OK_BULK && is_bulk_op())", file=0x557ed0ff8c40 "/test/11.5_dbg/sql/sql_error.cc", line=335, function=0x557ed0ff8d98 "void Diagnostics_area::set_ok_status(ulonglong, ulonglong, const char*)") at ./assert/assert.c:101
      #7  0x0000557ed03878a5 in Diagnostics_area::set_ok_status (this=0x153ad4006e80, affected_rows=affected_rows@entry=0, last_insert_id=last_insert_id@entry=0, message=message@entry=0x0)at /test/11.5_dbg/sql/sql_error.cc:335
      #8  0x0000557ed04c903d in my_ok (message=0x0, id=0, affected_rows_arg=0, thd=0x153ad4000d58) at /test/11.5_dbg/sql/sql_class.h:4665
      #9  Sql_cmd_create_table_like::execute (this=<optimized out>, thd=0x153ad4000d58) at /test/11.5_dbg/sql/sql_table.cc:13013
      #10 0x0000557ed03d9dd2 in mysql_execute_command (thd=thd@entry=0x153ad4000d58, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false)at /test/11.5_dbg/sql/sql_parse.cc:5802
      #11 0x0000557ed03db122 in mysql_parse (thd=thd@entry=0x153ad4000d58, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x153b1c0fd270)at /test/11.5_dbg/sql/sql_parse.cc:7815
      #12 0x0000557ed03dd5ec in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x153ad4000d58, packet=packet@entry=0x153ad400b1d9 "CREATE OR REPLACE TABLE t (d INT) ENGINE=Spider PARTITION BY LIST COLUMNS (d) (PARTITION p VALUES IN (0))", packet_length=packet_length@entry=105, blocking=blocking@entry=true)at /test/11.5_dbg/sql/sql_class.h:254
      #13 0x0000557ed03df8f8 in do_command (thd=0x153ad4000d58, blocking=blocking@entry=true) at /test/11.5_dbg/sql/sql_parse.cc:1405
      #14 0x0000557ed054dae1 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x557ed367fe38, put_in_cache=put_in_cache@entry=true)at /test/11.5_dbg/sql/sql_connect.cc:1445
      #15 0x0000557ed054dde0 in handle_one_connection (arg=arg@entry=0x557ed367fe38)at /test/11.5_dbg/sql/sql_connect.cc:1347
      #16 0x0000557ed0996c3e in pfs_spawn_thread (arg=0x557ed35cedf8)at /test/11.5_dbg/storage/perfschema/pfs.cc:2201
      #17 0x0000153b2528f18a in start_thread (arg=<optimized out>)at ./nptl/pthread_create.c:444
      #18 0x0000153b2531dbd0 in clone3 ()at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
      

      Bug confirmed present in:
      MariaDB: 10.5.25 (dbg), 10.6.18 (dbg), 10.11.8 (dbg), 11.1.5 (dbg), 11.2.4 (dbg), 11.3.3 (dbg), 11.4.2 (dbg), 11.5.0 (dbg)

      Bug (or feature/syntax) confirmed not present in:
      MariaDB: 10.5.25 (opt), 10.6.18 (opt), 10.11.8 (opt), 11.1.5 (opt), 11.2.4 (opt), 11.3.3 (opt), 11.4.2 (opt), 11.5.0 (opt)
      MySQL: 5.5.62 (dbg), 5.5.62 (opt), 5.6.51 (dbg), 5.6.51 (opt), 5.7.44 (dbg), 5.7.44 (opt), 8.0.36 (dbg), 8.0.36 (opt)

      Attachments

        Issue Links

          Activity

            People

              ycp Yuchen Pei
              Roel Roel Van de Paar
              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.