UniqueID: thd->lex->sql_command == SQLCOM_XA_COMMIT || thd->lex->sql_command == SQLCOM_XA_ROLLBACK|SIGABRT|TC_LOG::run_commit_ordered|MYSQL_BIN_LOG::trx_group_commit_leader|MYSQL_BIN_LOG::write_transaction_to_binlog_events|MYSQL_BIN_LOG::write_transaction_to_binlog Branch Revision: Previous version of patch: bb-10.6-andrei_dbg @ 88b0738b7c61a25eaffc66dda0a5a7f850c89918 Error log: mariadbd: /test/bb-10.6-andrei_dbg/sql/log.cc:9428: void TC_LOG::run_commit_ordered(THD*, bool, THD*): Assertion `thd->lex->sql_command == SQLCOM_XA_COMMIT || thd->lex->sql_command == SQLCOM_XA_ROLLBACK' failed. Full Stack: Core was generated by `/test/PATCH_MD201123-mariadb-10.6.17-linux-x86_64-dbg/bin/mariadbd --no-default'. Program terminated with signal SIGABRT, Aborted. #0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=23190210238016) at ./nptl/pthread_kill.c:44 [Current thread is 1 (Thread 0x1517643e5640 (LWP 212928))] (gdb) bt #0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=23190210238016) at ./nptl/pthread_kill.c:44 #1 __pthread_kill_internal (signo=6, threadid=23190210238016) at ./nptl/pthread_kill.c:78 #2 __GI___pthread_kill (threadid=23190210238016, signo=signo@entry=6) at ./nptl/pthread_kill.c:89 #3 0x0000151768442476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26 #4 0x00001517684287f3 in __GI_abort () at ./stdlib/abort.c:79 #5 0x000015176842871b in __assert_fail_base (fmt=0x1517685dd150 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x563b81feabe0 "thd->lex->sql_command == SQLCOM_XA_COMMIT || thd->lex->sql_command == SQLCOM_XA_ROLLBACK", file=0x563b81fe8ae8 "/test/bb-10.6-andrei_dbg/sql/log.cc", line=9428, function=) at ./assert/assert.c:92 #6 0x0000151768439e96 in __GI___assert_fail (assertion=0x563b81feabe0 "thd->lex->sql_command == SQLCOM_XA_COMMIT || thd->lex->sql_command == SQLCOM_XA_ROLLBACK", file=0x563b81fe8ae8 "/test/bb-10.6-andrei_dbg/sql/log.cc", line=9428, function=0x563b81feaba8 "void TC_LOG::run_commit_ordered(THD*, bool, THD*)") at ./assert/assert.c:101 #7 0x0000563b81666423 in TC_LOG::run_commit_ordered (this=this@entry=0x563b827bc960 , thd=0x151710000d58, all=true, leader_thd=0x151710000d58) at /test/bb-10.6-andrei_dbg/sql/log.cc:9428 #8 0x0000563b8166fa6e in MYSQL_BIN_LOG::trx_group_commit_leader (this=this@entry=0x563b827bc960 , leader=leader@entry=0x1517643e2eb0) at /test/bb-10.6-andrei_dbg/sql/log.cc:8616 #9 0x0000563b8167007a in MYSQL_BIN_LOG::write_transaction_to_binlog_events (this=this@entry=0x563b827bc960 , entry=entry@entry=0x1517643e2eb0) at /test/bb-10.6-andrei_dbg/sql/log.cc:8194 #10 0x0000563b816706a5 in MYSQL_BIN_LOG::write_transaction_to_binlog (this=this@entry=0x563b827bc960 , thd=thd@entry=0x151710000d58, cache_mngr=cache_mngr@entry=0x15171008a638, end_ev=end_ev@entry=0x1517643e3190, all=all@entry=true, using_stmt_cache=using_stmt_cache@entry=false, using_trx_cache=true, is_ro_1pc=false) at /test/bb-10.6-andrei_dbg/sql/log.cc:7791 #11 0x0000563b8167088e in binlog_flush_cache (thd=thd@entry=0x151710000d58, cache_mngr=cache_mngr@entry=0x15171008a638, end_ev=end_ev@entry=0x1517643e3190, all=all@entry=true, using_stmt=using_stmt@entry=false, using_trx=using_trx@entry=true, is_ro_1pc=false) at /test/bb-10.6-andrei_dbg/sql/log.cc:1771 #12 0x0000563b81670cf9 in binlog_rollback_flush_trx_cache (thd=thd@entry=0x151710000d58, all=all@entry=true, cache_mngr=cache_mngr@entry=0x15171008a638) at /test/bb-10.6-andrei_dbg/sql/log.cc:1907 #13 0x0000563b81671259 in binlog_rollback (hton=, thd=0x151710000d58, all=) at /test/bb-10.6-andrei_dbg/sql/log.cc:2326 #14 0x0000563b815218fd in ha_rollback_trans (thd=thd@entry=0x151710000d58, all=all@entry=true) at /test/bb-10.6-andrei_dbg/sql/handler.cc:2278 #15 0x0000563b813c871d in trans_rollback_implicit (thd=thd@entry=0x151710000d58) at /test/bb-10.6-andrei_dbg/sql/transaction.cc:421 #16 0x0000563b813c69ae in mysql_admin_table (thd=thd@entry=0x151710000d58, tables=tables@entry=0x1517100f3db0, check_opt=check_opt@entry=0x0, operator_name=operator_name@entry=0x563b826d9100 , lock_type=lock_type@entry=TL_READ_NO_INSERT, org_open_for_modify=org_open_for_modify@entry=false, repair_table_use_frm=, extra_open_options=, prepare_func=, operator_func=, view_operator_func=, is_cmd_replicated=) at /test/bb-10.6-andrei_dbg/sql/sql_admin.cc:1395 #17 0x0000563b813c7181 in mysql_preload_keys (thd=thd@entry=0x151710000d58, tables=tables@entry=0x1517100f3db0) at /test/bb-10.6-andrei_dbg/sql/sql_admin.cc:1539 #18 0x0000563b81263b89 in mysql_execute_command (thd=thd@entry=0x151710000d58, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/bb-10.6-andrei_dbg/sql/sql_parse.cc:4103 #19 0x0000563b8126a917 in mysql_parse (thd=thd@entry=0x151710000d58, rawbuf=, length=, parser_state=parser_state@entry=0x1517643e41f0) at /test/bb-10.6-andrei_dbg/sql/sql_parse.cc:8051 #20 0x0000563b8126cc8d in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x151710000d58, packet=packet@entry=0x151710591279 "", packet_length=packet_length@entry=45, blocking=blocking@entry=true) at /test/bb-10.6-andrei_dbg/sql/sql_class.h:241 #21 0x0000563b8126eda7 in do_command (thd=0x151710000d58, blocking=blocking@entry=true) at /test/bb-10.6-andrei_dbg/sql/sql_parse.cc:1409 #22 0x0000563b813b315d in do_handle_one_connection (connect=, connect@entry=0x563b83db7c08, put_in_cache=put_in_cache@entry=true) at /test/bb-10.6-andrei_dbg/sql/sql_connect.cc:1416 #23 0x0000563b813b3452 in handle_one_connection (arg=arg@entry=0x563b83db7c08) at /test/bb-10.6-andrei_dbg/sql/sql_connect.cc:1318 #24 0x0000563b81801628 in pfs_spawn_thread (arg=0x563b83d20d78) at /test/bb-10.6-andrei_dbg/storage/perfschema/pfs.cc:2201 #25 0x0000151768494ac3 in start_thread (arg=) at ./nptl/pthread_create.c:442 #26 0x0000151768526a40 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81 Query: load index into cache t3, t2 key (primary,b);