Skip to content

Commit 98ac2d4

Browse files
author
Jan Lindström
committed
MDEV-21170 : Galera test failure on galera_sr.GCF-1043[A|B]
Add error printout when mysql.wsrep_streaming_log lock fails. However, tests are very undeterministic and not suitable for mtr environment. Thus, they are removed.
1 parent 952a028 commit 98ac2d4

File tree

5 files changed

+5
-68
lines changed

5 files changed

+5
-68
lines changed

mysql-test/suite/galera_sr/r/GCF-1043A.result

Lines changed: 0 additions & 21 deletions
This file was deleted.

mysql-test/suite/galera_sr/r/GCF-1043B.result

Lines changed: 0 additions & 21 deletions
This file was deleted.

mysql-test/suite/galera_sr/t/GCF-1043A.test

Lines changed: 0 additions & 13 deletions
This file was deleted.

mysql-test/suite/galera_sr/t/GCF-1043B.test

Lines changed: 0 additions & 13 deletions
This file was deleted.

sql/wsrep_schema.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,11 @@ static int open_table(THD* thd,
232232
NULL, lock_type);
233233

234234
if (!open_n_lock_single_table(thd, &tables, tables.lock_type, flags)) {
235+
if (thd->is_error()) {
236+
WSREP_WARN("Can't lock table %s.%s : %d (%s)",
237+
schema_name->str, table_name->str,
238+
thd->get_stmt_da()->sql_errno(), thd->get_stmt_da()->message());
239+
}
235240
close_thread_tables(thd);
236241
my_error(ER_NO_SUCH_TABLE, MYF(0), schema_name->str, table_name->str);
237242
DBUG_RETURN(1);

0 commit comments

Comments
 (0)