Skip to content

Commit 047abda

Browse files
author
Jan Lindström
authored
Merge pull request #653 from codership/MDEV-13549-fixes-for-MW-286
MDEV-13549 Fix and re-enable test galera.MW-286
2 parents efb9dec + 0368e75 commit 047abda

File tree

4 files changed

+4
-11
lines changed

4 files changed

+4
-11
lines changed

mysql-test/suite/galera/disabled.def

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ MW-336 : MDEV-13549 Galera test failures
1313
galera_gra_log : MDEV-13549 Galera test failures
1414
galera_flush_local : MDEV-13549 Galera test failures
1515
galera_flush : MDEV-13549 Galera test failures
16-
MW-329 : MDEV-13549 Galera test failures
1716
galera_account_management : MariaDB 10.0 does not support ALTER USER
1817
galera_binlog_row_image : MariaDB 10.0 does not support binlog_row_image
1918
galera_binlog_rows_query_log_events: MariaDB does not support binlog_rows_query_log_events
@@ -48,16 +47,11 @@ galera_toi_ddl_nonconflicting : MDEV-13549 Galera test failures
4847
galera_parallel_simple : MDEV-13549 Galera test failures
4948
galera_admin : MDEV-13549 Galera test failures
5049
galera_var_max_ws_rows : MDEV-13549 Galera test failures 10.1
51-
MW-286 : MDEV-13549 Galera test failures 10.1
5250
galera_as_master: MDEV-13549 Galera test failures 10.1
5351
galera_pc_ignore_sb : MDEV-13549 Galera test failures 10.1
5452
galera_lock_table : MDEV-13549 Galera test failures 10.1
5553
MW-284 : MDEV-13549 Galera test failures 10.1
5654
galera_as_slave : MDEV-13549 Galera test failures 10.1
57-
MW-328C : MDEV-13549 Galera test failures 10.1
58-
MW-328A : MDEV-13549 Galera test failures 10.1
59-
MW-328B : MDEV-13549 Galera test failures 10.1
60-
MW-328 : MDEV-13549 Galera test failures 10.1
6155
galera_suspend_slave : MDEV-13549 Galera test failures 10.1
6256
galera_gtid : MDEV-13549 Galera test failures 10.1
6357
galera_gtid_slave : MDEV-13549 Galera test failures 10.1

mysql-test/suite/galera/t/MW-286.test

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ SET wsrep_on = FALSE;
2525
--error ER_QUERY_INTERRUPTED
2626
ALTER TABLE t1 ADD PRIMARY KEY (f1);
2727

28-
SET SESSION wsrep_sync_wait = 0;
2928
SET wsrep_on = TRUE;
3029
SET GLOBAL wsrep_desync = FALSE;
3130

sql/sql_parse.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7193,7 +7193,6 @@ static void wsrep_mysql_parse(THD *thd, char *rawbuf, uint length,
71937193
thd->wsrep_conflict_state == CERT_FAILURE)
71947194
{
71957195
thd->reset_for_next_command();
7196-
thd->reset_killed();
71977196
if (is_autocommit &&
71987197
thd->lex->sql_command != SQLCOM_SELECT &&
71997198
(thd->wsrep_retry_counter < thd->variables.wsrep_retry_autocommit))
@@ -7221,17 +7220,18 @@ static void wsrep_mysql_parse(THD *thd, char *rawbuf, uint length,
72217220
thd->thread_id, is_autocommit, thd->wsrep_retry_counter,
72227221
thd->variables.wsrep_retry_autocommit, thd->query());
72237222
my_error(ER_LOCK_DEADLOCK, MYF(0), "wsrep aborted transaction");
7224-
thd->reset_killed();
72257223
thd->wsrep_conflict_state= NO_CONFLICT;
72267224
if (thd->wsrep_conflict_state != REPLAYING)
72277225
thd->wsrep_retry_counter= 0; // reset
72287226
}
7227+
mysql_mutex_unlock(&thd->LOCK_wsrep_thd);
7228+
thd->reset_killed();
72297229
}
72307230
else
72317231
{
72327232
set_if_smaller(thd->wsrep_retry_counter, 0); // reset; eventually ok
7233+
mysql_mutex_unlock(&thd->LOCK_wsrep_thd);
72337234
}
7234-
mysql_mutex_unlock(&thd->LOCK_wsrep_thd);
72357235
}
72367236

72377237
/* If retry is requested clean up explain structure */

sql/wsrep_mysqld.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2336,7 +2336,7 @@ extern "C" void wsrep_thd_set_query_state(
23362336

23372337
void wsrep_thd_set_conflict_state(THD *thd, enum wsrep_conflict_state state)
23382338
{
2339-
thd->wsrep_conflict_state= state;
2339+
if (WSREP(thd)) thd->wsrep_conflict_state= state;
23402340
}
23412341

23422342

0 commit comments

Comments
 (0)