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

Failing assertion: table->quiesce == QUIESCE_START

    XMLWordPrintable

Details

    Description

      Reproducible, needs cleaning

      # Remaining options: --mysqld=--innodb --mysqld=--default-storage-engine=InnoDB
      # Search pattern(s): (?^s:table->quiesce == QUIESCE)
       
      --disable_abort_on_error
      GRANT ALL ON *.* TO rqg@localhost;
      CREATE DATABASE IF NOT EXISTS optimizer_basic_db;
      USE optimizer_basic_db;
      CREATE TABLE table1_innodb_utf8 (col_set_latin1_null set('Idaho', 'New York', 'Montana', 'Georgia') CHARACTER SET latin1 null) CHARACTER SET utf8;
      CREATE ALGORITHM=MERGE VIEW view_table1_innodb_utf8_0 AS SELECT * FROM table1_innodb_utf8;
      CREATE ALGORITHM=TEMPTABLE VIEW view_table1_innodb_utf8_1 AS SELECT * FROM table1_innodb_utf8;
      CREATE DATABASE IF NOT EXISTS smf_db;
      USE smf_db;|||
      --delimiter ;
      CREATE TABLE smf_mail_queue (id_mail int(10) unsigned NOT NULL AUTO_INCREMENT, time_sent int(10) NOT NULL DEFAULT '0', recipient varchar(255) NOT NULL DEFAULT '', body text NOT NULL, subject varchar(255) NOT NULL DEFAULT '', headers text NOT NULL, send_html tinyint(3) NOT NULL DEFAULT '0', priority tinyint(3) NOT NULL DEFAULT '1', private tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (id_mail), KEY time_sent (time_sent), KEY mail_priority (priority,id_mail)) CHECKSUM=1 DEFAULT CHARSET=utf8;
      --connect (con4_2,localhost,root,,)
      --connect (con6_2,localhost,root,,)
      --connection con4_2
      --send
      FLUSH TABLES optimizer_basic_db.view_table1_innodb_utf8_1, smf_db.smf_mail_queue FOR EXPORT;
      --connection con6_2
      FLUSH TABLES optimizer_basic_db.view_table1_innodb_utf8_0 FOR EXPORT;
      

      10.6 ec2574fd

      2023-11-09 19:06:03 0x7fa22d2af6c0  InnoDB: Assertion failure in file /data/src/10.6/storage/innobase/row/row0quiesce.cc line 697
      InnoDB: Failing assertion: table->quiesce == QUIESCE_START
       
      #8  0x000055f9dcb2e926 in ut_dbg_assertion_failed (expr=0x55f9ddf60c00 "table->quiesce == QUIESCE_START", file=0x55f9ddf5fc00 "/data/src/10.6/storage/innobase/row/row0quiesce.cc", line=697) at /data/src/10.6/storage/innobase/ut/ut0dbg.cc:60
      #9  0x000055f9dca61ac8 in row_quiesce_set_state (table=0x618000027920, state=QUIESCE_COMPLETE, trx=0x7fa233777940) at /data/src/10.6/storage/innobase/row/row0quiesce.cc:697
      #10 0x000055f9dca60cbd in row_quiesce_table_start (table=0x618000027920, trx=0x7fa233777940) at /data/src/10.6/storage/innobase/row/row0quiesce.cc:573
      #11 0x000055f9dc6255a5 in ha_innobase::external_lock (this=0x61d0002b48b8, thd=0x62b0000ee218, lock_type=0) at /data/src/10.6/storage/innobase/handler/ha_innodb.cc:16092
      #12 0x000055f9dbbd9786 in handler::ha_external_lock (this=0x61d0002b48b8, thd=0x62b0000ee218, lock_type=0) at /data/src/10.6/sql/handler.cc:7143
      #13 0x000055f9dbedf4eb in lock_external (thd=0x62b0000ee218, tables=0x607000030488, count=2) at /data/src/10.6/sql/lock.cc:396
      #14 0x000055f9dbedec9d in mysql_lock_tables (thd=0x62b0000ee218, sql_lock=0x607000030468, flags=4096) at /data/src/10.6/sql/lock.cc:341
      #15 0x000055f9dbede965 in mysql_lock_tables (thd=0x62b0000ee218, tables=0x62b0000fa108, count=2, flags=4096) at /data/src/10.6/sql/lock.cc:304
      #16 0x000055f9db19fd94 in lock_tables (thd=0x62b0000ee218, tables=0x62b0000f5400, count=2, flags=4096) at /data/src/10.6/sql/sql_base.cc:5569
      #17 0x000055f9db19e799 in open_and_lock_tables (thd=0x62b0000ee218, options=..., tables=0x62b0000f5400, derived=false, flags=4096, prelocking_strategy=0x7fa22d2acc50) at /data/src/10.6/sql/sql_base.cc:5328
      #18 0x000055f9db82de8b in open_and_lock_tables (thd=0x62b0000ee218, tables=0x62b0000f5400, derived=false, flags=4096, prelocking_strategy=0x7fa22d2acc50) at /data/src/10.6/sql/sql_base.h:281
      #19 0x000055f9db830318 in flush_tables_with_read_lock (thd=0x62b0000ee218, all_tables=0x62b0000f5400) at /data/src/10.6/sql/sql_reload.cc:588
      #20 0x000055f9db33ced1 in mysql_execute_command (thd=0x62b0000ee218, is_called_from_prepared_stmt=false) at /data/src/10.6/sql/sql_parse.cc:5435
      #21 0x000055f9db34e5dd in mysql_parse (thd=0x62b0000ee218, rawbuf=0x62b0000f5238 "FLUSH TABLES optimizer_basic_db.view_table1_innodb_utf8_1, smf_db.smf_mail_queue FOR EXPORT", length=91, parser_state=0x7fa22d2ad9f0) at /data/src/10.6/sql/sql_parse.cc:8050
      #22 0x000055f9db324270 in dispatch_command (command=COM_QUERY, thd=0x62b0000ee218, packet=0x6290002df219 "FLUSH TABLES optimizer_basic_db.view_table1_innodb_utf8_1, smf_db.smf_mail_queue FOR EXPORT", packet_length=91, blocking=true) at /data/src/10.6/sql/sql_parse.cc:1896
      #23 0x000055f9db320fa4 in do_command (thd=0x62b0000ee218, blocking=true) at /data/src/10.6/sql/sql_parse.cc:1409
      #24 0x000055f9db792086 in do_handle_one_connection (connect=0x608000003438, put_in_cache=true) at /data/src/10.6/sql/sql_connect.cc:1416
      #25 0x000055f9db791a47 in handle_one_connection (arg=0x608000003438) at /data/src/10.6/sql/sql_connect.cc:1318
      #26 0x000055f9dc3f52aa in pfs_spawn_thread (arg=0x617000008598) at /data/src/10.6/storage/perfschema/pfs.cc:2201
      #27 0x00007fa23aea8044 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
      #28 0x00007fa23af2861c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
      

      Also a similar assertion failure has been seen

      10.11 fecd78b83785d5ae96f2c6ff340375be803cd299

      2023-11-08 23:59:11 0x7fa3e01f0700  InnoDB: Assertion failure in file /home/jenkins/workspace/Extra/RQG_Combinations/server/storage/innobase
      /row/row0quiesce.cc line 701
      InnoDB: Failing assertion: table->quiesce == QUIESCE_COMPLETE
       
      #6  0x00005647ea1c0cb4 in ut_dbg_assertion_failed (expr=expr@entry=0x5647ead25c00 "table->quiesce == QUIESCE_COMPLETE", file=file@entry=0x5647ead25a10 "/data/src/storage/innobase/row/row0quiesce.cc", line=line@entry=701) at /data/src/storage/innobase/ut/ut0dbg.cc:60
      #7  0x00005647ea0ad85e in row_quiesce_set_state (table=table@entry=0x7fa3a00b4278, state=state@entry=QUIESCE_NONE, trx=trx@entry=0x7fa3ed955680) at /data/src/storage/innobase/row/row0quiesce.cc:701
      #8  0x00005647ea0af2b7 in row_quiesce_table_complete (table=table@entry=0x7fa3a00b4278, trx=trx@entry=0x7fa3ed955680) at /data/src/storage/innobase/row/row0quiesce.cc:622
      #9  0x00005647e9be7c8f in ha_innobase::external_lock (this=0x7fa3a815a370, thd=0x7fa3a8000d48, lock_type=2) at /data/src/storage/innobase/handler/ha_innodb.cc:16055
      #10 0x00005647e88c0bef in handler::ha_external_lock (this=this@entry=0x7fa3a815a370, thd=thd@entry=0x7fa3a8000d48, lock_type=lock_type@entry=2) at /data/src/sql/handler.cc:7145
      #11 0x00005647e940b918 in handler::ha_external_unlock (thd=0x7fa3a8000d48, this=0x7fa3a815a370) at /data/src/sql/handler.h:3459
      #12 unlock_external (thd=thd@entry=0x7fa3a8000d48, table=0x7fa3a80fb638, count=2) at /data/src/sql/lock.cc:744
      #13 0x00005647e940de86 in mysql_unlock_tables (thd=thd@entry=0x7fa3a8000d48, sql_lock=sql_lock@entry=0x7fa3a80fb618, free_lock=<optimized out>) at /data/src/sql/lock.cc:435
      #14 0x00005647e940fb06 in mysql_unlock_tables (thd=thd@entry=0x7fa3a8000d48, sql_lock=0x7fa3a80fb618) at /data/src/sql/lock.cc:418
      #15 0x00005647e73d7e9e in close_thread_tables (thd=thd@entry=0x7fa3a8000d48) at /data/src/sql/sql_base.cc:962
      #16 0x00005647e73dc88b in Locked_tables_list::unlock_locked_tables (this=this@entry=0x7fa3a8004ff8, thd=thd@entry=0x7fa3a8000d48) at /data/src/sql/sql_base.cc:2591
      #17 0x00005647e77423b3 in mysql_execute_command (thd=thd@entry=0x7fa3a8000d48, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /data/src/sql/sql_parse.cc:5094
      #18 0x00005647e76c89e5 in mysql_parse (thd=thd@entry=0x7fa3a8000d48, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x7fa3e01ef1a0) at /data/src/sql/sql_parse.cc:8031
      #19 0x00005647e7717fb7 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x7fa3a8000d48, packet=packet@entry=0x7fa3a800ada9 "/* WRK-1 QNO 71010 */  UNLOCK TABLES", packet_length=packet_length@entry=36, blocking=blocking@entry=true) at /data/src/sql/sql_class.h:1384
      #20 0x00005647e772529f in do_command (thd=0x7fa3a8000d48, blocking=blocking@entry=true) at /data/src/sql/sql_parse.cc:1407
      #21 0x00005647e7e2948c in do_handle_one_connection (connect=<optimized out>, connect@entry=0x5647f0cc0fc8, put_in_cache=put_in_cache@entry=true) at /data/src/sql/sql_connect.cc:1416
      #22 0x00005647e7e2b76e in handle_one_connection (arg=0x5647f0cc0fc8) at /data/src/sql/sql_connect.cc:1318
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              1 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.