Skip to content

Commit

Permalink
MDEV-15845 Test failure on galera.galera_concurrent_ctas
Browse files Browse the repository at this point in the history
While executing CTAS galera applier thread can cause CTAS to abort and rollback. Rollback can take time causing applier thread to shutdown node after serial unsuccessful retries to apply transaction. Don't set lock_wait_timeout to zero to wait for lock.
  • Loading branch information
mkaruza committed Sep 4, 2018
1 parent 186a998 commit 58a1d27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion mysql-test/suite/galera/disabled.def
Expand Up @@ -34,5 +34,4 @@ galera.MW-44 : MDEV-15809 Test failure on galera.MW-44
galera.galera_pc_ignore_sb : MDEV-15811 Test failure on galera_pc_ignore_sb
galera_kill_applier : race condition at the start of the test
galera_ist_progress: MDEV-15236 galera_ist_progress fails when trying to read transfer status
galera_concurrent_ctas : MDEV-15845 Test failure on galera.galera_concurrent_ctas
pxc-421: Lock timeout exceeded
4 changes: 4 additions & 0 deletions sql/sql_base.cc
Expand Up @@ -3807,6 +3807,10 @@ lock_table_names(THD *thd, const DDL_options_st &options,
mdl_requests.push_front(&global_request);

if (create_table)
#ifdef WITH_WSREP
if (thd->lex->sql_command != SQLCOM_CREATE_TABLE &&
thd->wsrep_exec_mode != REPL_RECV)
#endif
lock_wait_timeout= 0; // Don't wait for timeout
}

Expand Down

0 comments on commit 58a1d27

Please sign in to comment.