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

Assertion `pause_seqno_.is_undefined() == false' failed in void wsrep::server_state::resume()

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 11.2(EOL), 11.3(EOL), 11.4, 11.5(EOL)
    • 11.4
    • Galera

    Description

      Replay using CLI

      SET GLOBAL TRANSACTION READ ONLY;
      SET GLOBAL wsrep_slave_threads=8;
      SET SESSION wsrep_trx_fragment_size=128;
      CREATE OR REPLACE TABLE t2 (a INT PRIMARY KEY) ENGINE=InnoDB;
      INSERT INTO t2 SELECT SEQ FROM seq_7000_to_10000;
      INSERT INTO t2 VALUES ("1"),("2"),("3"),("7800");
      SET character_set_collations='utf8mb3=uca1400_latvian_ai_ci';
      SELECT COUNT(1) FROM t2;
      SET GLOBAL read_only=1;
      

      Leads to

      11.5.0 8f0c9340537b84fcd7012d4a31e6f858e7eb919c (Debug)

      mysqld: /test/server_dbg/wsrep-lib/src/server_state.cpp:586: void wsrep::server_state::resume(): Assertion `pause_seqno_.is_undefined() == false' failed.
      

      11.5.0 8f0c9340537b84fcd7012d4a31e6f858e7eb919c (Debug)

      Core was generated by `/test/GAL_MD230324-mariadb-11.5.0-linux-x86_64-dbg/bin/mysqld --defaults-file=/'.
      Program terminated with signal SIGABRT, Aborted.
      #0  __pthread_kill (threadid=<optimized out>, signo=signo@entry=6)at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
      [Current thread is 1 (Thread 0x14938c0c5700 (LWP 688829))]
      (gdb) bt
      #0  __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
      #1  0x00005617bf46e42e in my_write_core (sig=sig@entry=6) at /test/server_dbg/mysys/stacktrace.c:424
      #2  0x00005617bed4da16 in handle_fatal_signal (sig=6) at /test/server_dbg/sql/signal_handler.cc:357
      #3  <signal handler called>
      #4  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
      #5  0x000014938f058859 in __GI_abort () at abort.c:79
      #6  0x000014938f058729 in __assert_fail_base (fmt=0x14938f1ee588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x5617bfc6dfa8 "pause_seqno_.is_undefined() == false", file=0x5617bfc6da38 "/test/server_dbg/wsrep-lib/src/server_state.cpp", line=586, function=<optimized out>) at assert.c:92
      #7  0x000014938f069fd6 in __GI___assert_fail (assertion=assertion@entry=0x5617bfc6dfa8 "pause_seqno_.is_undefined() == false", file=file@entry=0x5617bfc6da38 "/test/server_dbg/wsrep-lib/src/server_state.cpp", line=line@entry=586, function=function@entry=0x5617bfc6df80 "void wsrep::server_state::resume()") at assert.c:101
      #8  0x00005617bf601fc5 in wsrep::server_state::resume (this=this@entry=0x5617c1b4d9f0) at /test/server_dbg/wsrep-lib/src/server_state.cpp:588
      #9  0x00005617beed3eb4 in Global_read_lock::unlock_global_read_lock (this=this@entry=0x149324004a30, thd=thd@entry=0x149324000d48) at /test/server_dbg/sql/lock.cc:1152
      #10 0x00005617bebc3ce7 in fix_read_only (self=<optimized out>, thd=0x149324000d48, type=<optimized out>) at /test/server_dbg/sql/sys_vars.cc:3150
      #11 0x00005617be934208 in sys_var::update (this=0x5617c008d180 <Sys_readonly>, thd=0x149324000d48, var=0x14932401ad80) at /test/server_dbg/sql/set_var.cc:209
      #12 0x00005617be934725 in set_var::update (this=<optimized out>, thd=<optimized out>) at /test/server_dbg/sql/set_var.cc:863
      #13 0x00005617be935b50 in sql_set_variables (thd=thd@entry=0x149324000d48, var_list=var_list@entry=0x149324005fc8, free=free@entry=true) at /test/server_dbg/sql/set_var.cc:745
      #14 0x00005617bea26073 in mysql_execute_command (thd=thd@entry=0x149324000d48, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/server_dbg/sql/sql_parse.cc:4809
      #15 0x00005617bea14fb3 in mysql_parse (thd=thd@entry=0x149324000d48, rawbuf=rawbuf@entry=0x14932401ac50 "SET GLOBAL read_only= 1", length=length@entry=23, parser_state=parser_state@entry=0x14938c0c4280) at /test/server_dbg/sql/sql_parse.cc:7821
      #16 0x00005617bea148b9 in wsrep_mysql_parse (thd=thd@entry=0x149324000d48, rawbuf=0x14932401ac50 "SET GLOBAL read_only= 1", length=23, parser_state=parser_state@entry=0x14938c0c4280) at /test/server_dbg/sql/sql_parse.cc:7631
      #17 0x00005617bea2ba6f in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x149324000d48, packet=packet@entry=0x14932400b029 "SET GLOBAL read_only= 1", packet_length=packet_length@entry=23, blocking=blocking@entry=true) at /test/server_dbg/sql/sql_class.h:1636
      #18 0x00005617bea2e217 in do_command (thd=0x149324000d48, blocking=blocking@entry=true) at /test/server_dbg/sql/sql_parse.cc:1405
      #19 0x00005617beba9d3a in do_handle_one_connection (connect=<optimized out>, connect@entry=0x5617c22d6178, put_in_cache=put_in_cache@entry=true) at /test/server_dbg/sql/sql_connect.cc:1447
      #20 0x00005617bebaa20c in handle_one_connection (arg=0x5617c22d6178) at /test/server_dbg/sql/sql_connect.cc:1349
      #21 0x000014938f569609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #22 0x000014938f155133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      Bug confirmed present in:
      MariaDB: 11.2.4 (dbg), 11.3.2 (dbg), 11.4.2 (dbg), 11.5.0 (dbg)

      Bug (or feature/syntax) confirmed not present in:
      MariaDB: 10.4.34 (dbg), 10.4.34 (opt), 10.5.25 (dbg), 10.5.25 (opt), 10.6.18 (opt), 10.6.18 (dbg), 11.0.6 (dbg), 10.11.8 (opt), 10.11.8 (dbg), 11.0.6 (opt), 11.1.4 (opt), 11.1.4 (dbg), 11.2.4 (opt), 11.3.2 (opt), 11.4.2 (opt), 11.5.0 (opt)

      Attachments

        Activity

          People

            sysprg Julius Goryavsky
            ramesh Ramesh Sivaraman
            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.