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

Galera assertion !wsrep_has_changes(thd) || (thd->lex->sql_command == SQLCOM_CREATE_TABLE && !thd->is_current_stmt_binlog_format_row())

    XMLWordPrintable

    Details

      Description

      How to repeat: randgen

      mysqld: /home/jan/mysql/10.4-kill/sql/wsrep_trans_observer.h:509: void wsrep_commit_empty(THD*, bool): Assertion `!wsrep_has_changes(thd) || (thd->lex->sql_command == SQLCOM_CREATE_TABLE && !thd->is_current_stmt_binlog_format_row())' failed.
      200430  7:54:17 [ERROR] mysqld got signal 6 ;
      ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      # 2020-04-30T07:54:32 [655979] 
      # 2020-04-30T07:54:32 [655979] Thread 1 (Thread 0x7f5818f64700 (LWP 656341)):
      # 2020-04-30T07:54:32 [655979] #0  __pthread_kill (threadid=<optimized out>, signo=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
      # 2020-04-30T07:54:32 [655979] #1  0x0000559ceb151bb1 in my_write_core (sig=6) at /home/jan/mysql/10.4-kill/mysys/stacktrace.c:481
      # 2020-04-30T07:54:32 [655979] #2  0x0000559cea8a46f3 in handle_fatal_signal (sig=6) at /home/jan/mysql/10.4-kill/sql/signal_handler.cc:343
      # 2020-04-30T07:54:32 [655979] #3  <signal handler called>
      # 2020-04-30T07:54:32 [655979] #4  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
      # 2020-04-30T07:54:32 [655979] #5  0x00007f584e0da859 in __GI_abort () at abort.c:79
      # 2020-04-30T07:54:32 [655979] #6  0x00007f584e0da729 in __assert_fail_base (fmt=0x7f584e270588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x559ceb3cf280 "!wsrep_has_changes(thd) || (thd->lex->sql_command == SQLCOM_CREATE_TABLE && !thd->is_current_stmt_binlog_format_row())", file=0x559ceb3ceee0 "/home/jan/mysql/10.4-kill/sql/wsrep_trans_observer.h", line=509, function=<optimized out>) at assert.c:92
      # 2020-04-30T07:54:32 [655979] #7  0x00007f584e0ebf36 in __GI___assert_fail (assertion=0x559ceb3cf280 "!wsrep_has_changes(thd) || (thd->lex->sql_command == SQLCOM_CREATE_TABLE && !thd->is_current_stmt_binlog_format_row())", file=0x559ceb3ceee0 "/home/jan/mysql/10.4-kill/sql/wsrep_trans_observer.h", line=509, function=0x559ceb3cf2f8 "void wsrep_commit_empty(THD*, bool)") at assert.c:101
      # 2020-04-30T07:54:32 [655979] #8  0x0000559cea8a69fa in wsrep_commit_empty (thd=0x7f5780000d90, all=true) at /home/jan/mysql/10.4-kill/sql/wsrep_trans_observer.h:509
      # 2020-04-30T07:54:32 [655979] #9  0x0000559cea8a96dc in ha_commit_trans (thd=0x7f5780000d90, all=true) at /home/jan/mysql/10.4-kill/sql/handler.cc:1462
      # 2020-04-30T07:54:32 [655979] #10 0x0000559cea6e3c9b in trans_commit_implicit (thd=0x7f5780000d90) at /home/jan/mysql/10.4-kill/sql/transaction.cc:301
      # 2020-04-30T07:54:32 [655979] #11 0x0000559cea54fe6a in mysql_execute_command (thd=0x7f5780000d90) at /home/jan/mysql/10.4-kill/sql/sql_parse.cc:6201
      # 2020-04-30T07:54:32 [655979] #12 0x0000559cea554b83 in mysql_parse (thd=0x7f5780000d90, rawbuf=0x7f5780011f68 "OPTIMIZE TABLE `table10000_innodb_int` /* QNO 1000 CON_ID 24 */", length=63, parser_state=0x7f5818f63520, is_com_multi=false, is_next_command=false) at /home/jan/mysql/10.4-kill/sql/sql_parse.cc:7900
      # 2020-04-30T07:54:32 [655979] #13 0x0000559cea554275 in wsrep_mysql_parse (thd=0x7f5780000d90, rawbuf=0x7f5780011f68 "OPTIMIZE TABLE `table10000_innodb_int` /* QNO 1000 CON_ID 24 */", length=63, parser_state=0x7f5818f63520, is_com_multi=false, is_next_command=false) at /home/jan/mysql/10.4-kill/sql/sql_parse.cc:7704
      # 2020-04-30T07:54:32 [655979] #14 0x0000559cea541009 in dispatch_command (command=COM_QUERY, thd=0x7f5780000d90, packet=0x7f5780008691 "OPTIMIZE TABLE `table10000_innodb_int` /* QNO 1000 CON_ID 24 */ ", packet_length=64, is_com_multi=false, is_next_command=false) at /home/jan/mysql/10.4-kill/sql/sql_parse.cc:1827
      # 2020-04-30T07:54:32 [655979] #15 0x0000559cea53f976 in do_command (thd=0x7f5780000d90) at /home/jan/mysql/10.4-kill/sql/sql_parse.cc:1359
      # 2020-04-30T07:54:32 [655979] #16 0x0000559cea6cacd1 in do_handle_one_connection (connect=0x559cedca24b0) at /home/jan/mysql/10.4-kill/sql/sql_connect.cc:1412
      # 2020-04-30T07:54:32 [655979] #17 0x0000559cea6caa1a in handle_one_connection (arg=0x559cedca24b0) at /home/jan/mysql/10.4-kill/sql/sql_connect.cc:1316
      # 2020-04-30T07:54:32 [655979] #18 0x00007f584ea19609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      # 2020-04-30T07:54:32 [655979] #19 0x00007f584e1d7103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      # 2020-04-30T07:54:32 [655979] Test completed with failure status STATUS_SERVER_CRASHED (101)
      # 2020-04-30T07:54:32 [655979] GenTest exited with exit status STATUS_SERVER_CRASHED (101)
      

        Attachments

        1. galera_stress_kill.yy
          4 kB
        2. galera_stress.zz
          1 kB
        3. nohup.out
          1.90 MB
        4. rungalera22.sh
          0.9 kB

          Issue Links

            Activity

              People

              Assignee:
              jplindst Jan Lindström
              Reporter:
              jplindst Jan Lindström
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Git Integration