Skip to content

Commit 5fffdbc

Browse files
author
Jan Lindström
committed
Fixes after 10.4 --> 10.5 merge
* MDEV-29142 : Ignore inconsistency warning as we kill cluster * galera_parallel_apply_3nodes : Disabled because it is unstable * MDEV-26597 : Add missing code * galera_sr.galera_sr_ws_size2 : Remove incorrect assertion
1 parent 977c385 commit 5fffdbc

File tree

7 files changed

+20
-14
lines changed

7 files changed

+20
-14
lines changed

mysql-test/suite/galera/disabled.def

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,5 @@ partition : MDEV-19958 Galera test failure on galera.partition
3131
query_cache: MDEV-15805 Test failure on galera.query_cache
3232
versioning_trx_id: MDEV-18590: galera.versioning_trx_id: Test failure: mysqltest: Result content mismatch
3333
galera_bf_abort_at_after_statement : Unstable
34+
galera_bf_abort_shutdown : MDEV-29773 Assertion failure on sql/wsrep_mysqld.cc:2893 in wsrep_bf_abort_shutdown
3435

35-
# Recent trouble
36-
MDEV-26597 : crashes on 10.5
37-
MDEV-27615 : crashes on 10.5 after MDEV-26597 fix
38-
MDEV-29142 : fails on 10.5 with WSREP: Inconsistency detected
39-
galera_bf_abort_shutdown : MDEV-29368 shutdown hang

mysql-test/suite/galera/r/MDEV-29142.result

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ connection node_2;
55
connection node_1;
66
call mtr.add_suppression("WSREP: Event .* Write_rows_v1 apply failed:.*");
77
call mtr.add_suppression("WSREP: Failed to apply write set:.*");
8+
call mtr.add_suppression("WSREP: Inconsistency detected: Inconsistent by consensus on.*");
89
connection node_2;
910
call mtr.add_suppression("WSREP: Failed to open table mysql.wsrep_streaming_log for writing");
1011
call mtr.add_suppression("WSREP: Failed to open SR table for write");
1112
call mtr.add_suppression("WSREP: Failed to recover SR transactions from schema: wsrep_on : 0");
13+
call mtr.add_suppression("WSREP: Inconsistency detected: Inconsistent by consensus on.*");
1214
SET @@global.tx_read_only = ON;
1315
SET default_storage_engine = SEQUENCE;
1416
create table t1 (c1 int);

mysql-test/suite/galera/t/MDEV-29142.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@
1010
--connection node_1
1111
call mtr.add_suppression("WSREP: Event .* Write_rows_v1 apply failed:.*");
1212
call mtr.add_suppression("WSREP: Failed to apply write set:.*");
13+
call mtr.add_suppression("WSREP: Inconsistency detected: Inconsistent by consensus on.*");
1314

1415
--connection node_2
1516
call mtr.add_suppression("WSREP: Failed to open table mysql.wsrep_streaming_log for writing");
1617
call mtr.add_suppression("WSREP: Failed to open SR table for write");
1718
call mtr.add_suppression("WSREP: Failed to recover SR transactions from schema: wsrep_on : 0");
19+
call mtr.add_suppression("WSREP: Inconsistency detected: Inconsistent by consensus on.*");
1820

1921
SET @@global.tx_read_only = ON;
2022
--error 0,1286

mysql-test/suite/galera_3nodes/disabled.def

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ galera_ipv6_rsync_section : MDEV-24097 MTR sporadaically fails: Failed to start
2929
galera_ssl_reload : MDEV-24097 MTR sporadaically fails: Failed to start mysqld or mysql_shutdown failed
3030
galera_toi_vote : MDEV-24097 MTR sporadaically fails: Failed to start mysqld or mysql_shutdown failed
3131
galera_wsrep_schema_init : MDEV-24097 MTR sporadaically fails: Failed to start mysqld or mysql_shutdown failed
32+
galera_parallel_apply_3nodes : MDEV-29774 Galera test galera_parallel_apply_3nodes is unstable

mysql-test/suite/galera_sr/disabled.def

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,3 @@
1212

1313
GCF-1060 : MDEV-26528 wrong usage of mutex LOCK_thd_kill and LOCK_thd_kill
1414

15-
galera_sr_ws_size2 : MDEV-29773 assertion failure
16-
galera-features#56 : MDEV-29773 assertion failure
17-
MDEV-27615 : MDEV-29773 assertion failure

sql/wsrep_mysqld.cc

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3339,19 +3339,28 @@ bool wsrep_consistency_check(THD *thd)
33393339
void wsrep_commit_empty(THD* thd, bool all)
33403340
{
33413341
DBUG_ENTER("wsrep_commit_empty");
3342-
WSREP_DEBUG("wsrep_commit_empty(%llu)", thd->thread_id);
3342+
WSREP_DEBUG("wsrep_commit_empty for %llu client_state %s client_mode"
3343+
" %s trans_state %s sql %s",
3344+
thd_get_thread_id(thd),
3345+
wsrep::to_c_string(thd->wsrep_cs().state()),
3346+
wsrep::to_c_string(thd->wsrep_cs().mode()),
3347+
wsrep::to_c_string(thd->wsrep_cs().transaction().state()),
3348+
wsrep_thd_query(thd));
3349+
33433350
if (wsrep_is_real(thd, all) &&
33443351
wsrep_thd_is_local(thd) &&
33453352
thd->wsrep_trx().active() &&
33463353
!thd->internal_transaction() &&
33473354
thd->wsrep_trx().state() != wsrep::transaction::s_committed)
33483355
{
3349-
/* @todo CTAS with STATEMENT binlog format and empty result set
3350-
seems to be committing empty. Figure out why and try to fix
3351-
elsewhere. */
3356+
/* Here transaction is either empty (i.e. no changes) or
3357+
it was CREATE TABLE with no row binlog format or
3358+
we have already aborted transaction e.g. because max writeset size
3359+
has been reached. */
33523360
DBUG_ASSERT(!wsrep_has_changes(thd) ||
33533361
(thd->lex->sql_command == SQLCOM_CREATE_TABLE &&
3354-
!thd->is_current_stmt_binlog_format_row()));
3362+
!thd->is_current_stmt_binlog_format_row()) ||
3363+
thd->wsrep_cs().transaction().state() == wsrep::transaction::s_aborted);
33553364
bool have_error= wsrep_current_error(thd);
33563365
int ret= wsrep_before_rollback(thd, all) ||
33573366
wsrep_after_rollback(thd, all) ||

sql/wsrep_thd.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ void wsrep_reset_threadvars(THD *);
184184

185185
static inline void wsrep_override_error(THD *thd, uint error, const char *format= 0, ...)
186186
{
187-
DBUG_ASSERT(error != ER_ERROR_DURING_COMMIT);
188187
Diagnostics_area *da= thd->get_stmt_da();
189188
if (da->is_ok() ||
190189
da->is_eof() ||

0 commit comments

Comments
 (0)