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

Assertion `server_id.is_undefined() == false' failed in int wsrep::transaction::certify_fragment(wsrep::unique_lock<wsrep::mutex>&)

    XMLWordPrintable

    Details

      Description

      SET autocommit=OFF;
      SET GLOBAL log_output=4;
      CREATE TABLE t2 (user_str TEXT);
      SET GLOBAL general_log=on;
      INSERT INTO t2 VALUES (4978+0.75);
      SET GLOBAL wsrep_cluster_address='';
      SET SESSION wsrep_trx_fragment_size=1;
      INSERT INTO t2 VALUES (10);
      SAVEPOINT event_logging_1;
      CREATE TABLE IF NOT EXISTS t3 (id INT) ENGINE=InnoDB;
      

      Leads to:

      10.4.19 57caff245cbdcbdfda6f022de7f354f05a790656 (Debug)

      mysqld: /test/10.4_dbg/wsrep-lib/src/transaction.cpp:1486: int wsrep::transaction::certify_fragment(wsrep::unique_lock<wsrep::mutex>&): Assertion `server_id.is_undefined() == false' failed.
      

      10.4.19 57caff245cbdcbdfda6f022de7f354f05a790656 (Debug)

      Core was generated by `/test/GAL_MD200421-mariadb-10.4.19-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 0x1465b80a0700 (LWP 3644910))]
      (gdb) bt
      #0  __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
      #1  0x000055847f3b019d in my_write_core (sig=sig@entry=6) at /test/10.4_dbg/mysys/stacktrace.c:386
      #2  0x000055847eab8cda in handle_fatal_signal (sig=6) at /test/10.4_dbg/sql/signal_handler.cc:356
      #3  <signal handler called>
      #4  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
      #5  0x00001465cc139859 in __GI_abort () at abort.c:79
      #6  0x00001465cc139729 in __assert_fail_base (fmt=0x1465cc2cf588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x55847f4e3378 "server_id.is_undefined() == false", file=0x55847f9da038 "/test/10.4_dbg/wsrep-lib/src/transaction.cpp", line=1486, function=<optimized out>) at assert.c:92
      #7  0x00001465cc14af36 in __GI___assert_fail (assertion=assertion@entry=0x55847f4e3378 "server_id.is_undefined() == false", file=file@entry=0x55847f9da038 "/test/10.4_dbg/wsrep-lib/src/transaction.cpp", line=line@entry=1486, function=function@entry=0x55847f9daba0 "int wsrep::transaction::certify_fragment(wsrep::unique_lock<wsrep::mutex>&)") at assert.c:101
      #8  0x000055847f44cf76 in wsrep::transaction::certify_fragment (this=this@entry=0x146544006fc8, lock=@0x1465b809e4e0: {_M_device = 0x146544006f28, _M_owns = false}) at /test/10.4_dbg/wsrep-lib/src/transaction.cpp:1487
      #9  0x000055847f44da1b in wsrep::transaction::streaming_step (this=this@entry=0x146544006fc8, lock=@0x1465b809e4e0: {_M_device = 0x146544006f28, _M_owns = false}, force=force@entry=false) at /test/10.4_dbg/wsrep-lib/src/transaction.cpp:1391
      #10 0x000055847f44dac7 in wsrep::transaction::after_row (this=this@entry=0x146544006fc8) at /test/10.4_dbg/wsrep-lib/src/transaction.cpp:265
      #11 0x000055847eabbbd3 in wsrep::client_state::after_row (this=0x146544006f60) at /test/10.4_dbg/wsrep-lib/include/wsrep/streaming_context.hpp:94
      #12 wsrep_after_row (thd=0x146544000d90) at /test/10.4_dbg/sql/wsrep_trans_observer.h:172
      #13 wsrep_after_row (thd=0x146544000d90) at /test/10.4_dbg/sql/handler.cc:6568
      #14 0x000055847eacb95f in handler::ha_write_row (this=0x14654439f698, buf=0x1465440380f8 "`\207\262\317\001\265\220\031") at /test/10.4_dbg/sql/handler.cc:6766
      #15 0x000055847ec102b3 in Log_to_csv_event_handler::log_general (this=<optimized out>, thd=0x146544000d90, event_time=<optimized out>, user_host=0x1465b809f0e0 "root[root] @ localhost []", user_host_len=25, thread_id_arg=17, command_type=0x55847f48c7d7 "Query", command_type_len=5, sql_text=0x146544013228 "CREATE TABLE IF NOT EXISTS t3 (id INT) ENGINE=InnoDB", sql_text_len=52, client_cs=0x55847fd4a6c0 <my_charset_utf8_general_ci>) at /test/10.4_dbg/sql/log.cc:807
      #16 0x000055847ec12a2b in LOGGER::general_log_write (this=this@entry=0x55847fd8c4a0 <logger>, thd=thd@entry=0x146544000d90, command=command@entry=COM_QUERY, query=query@entry=0x146544013228 "CREATE TABLE IF NOT EXISTS t3 (id INT) ENGINE=InnoDB", query_length=query_length@entry=52) at /test/10.4_dbg/sql/log.cc:1400
      #17 0x000055847ec12c90 in general_log_write (thd=thd@entry=0x146544000d90, command=command@entry=COM_QUERY, query=0x146544013228 "CREATE TABLE IF NOT EXISTS t3 (id INT) ENGINE=InnoDB", query_length=52) at /test/10.4_dbg/sql/log.cc:6677
      #18 0x000055847e7ef330 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x146544000d90, packet=packet@entry=0x14654401b661 "CREATE TABLE IF NOT EXISTS t3 (id INT) ENGINE=InnoDB", packet_length=packet_length@entry=52, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.4_dbg/sql/sql_class.h:1183
      #19 0x000055847e7f2cde in do_command (thd=0x146544000d90) at /test/10.4_dbg/sql/sql_parse.cc:1373
      #20 0x000055847e92d88f in do_handle_one_connection (connect=connect@entry=0x558482bd5db0) at /test/10.4_dbg/sql/sql_connect.cc:1412
      #21 0x000055847e92d9ae in handle_one_connection (arg=0x558482bd5db0) at /test/10.4_dbg/sql/sql_connect.cc:1316
      #22 0x00001465cc6f6609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #23 0x00001465cc236293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      Bug confirmed present in:
      MariaDB: 10.4.19 (dbg)

        Attachments

          Activity

            People

            Assignee:
            sciascid Daniele Sciascia
            Reporter:
            ramesh Ramesh Sivaraman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: