Commit f0707b38 authored by unknown's avatar unknown

MWL#116: Efficient group commit: Some fixes for test failures.

client/mysqltest.cc:
  Apply Serg's work-around for MySQL BUG#57491.
mysql-test/r/group_commit_binlog_pos.result:
  Accept different ways the server crash is detected.
mysql-test/t/group_commit_binlog_pos.test:
  Accept different ways the server crash is detected.
  Skip in row-based binlogging, as otherwise the binlog offsets will be different.
parent 45131a5b
......@@ -717,6 +717,10 @@ void handle_no_error(struct st_command*);
#ifdef EMBEDDED_LIBRARY
/* workaround for MySQL BUG#57491 */
#undef MY_WME
#define MY_WME 0
/* attributes of the query thread */
pthread_attr_t cn_thd_attrib;
......
......@@ -21,9 +21,9 @@ a
2
SET SESSION debug="+d,crash_dispatch_command_before";
SELECT 1;
ERROR HY000: Lost connection to MySQL server during query
ERROR HY000: Lost connection to MySQL server during query
ERROR HY000: Lost connection to MySQL server during query
Got one of the listed errors
Got one of the listed errors
Got one of the listed errors
SELECT * FROM t1 ORDER BY a;
a
0
......
--source include/have_debug_sync.inc
--source include/have_innodb.inc
--source include/have_log_bin.inc
--source include/have_binlog_format_mixed_or_statement.inc
# Need DBUG to crash the server intentionally
--source include/have_debug.inc
# Don't test this under valgrind, memory leaks will occur as we crash
......@@ -54,14 +56,14 @@ reap;
connection default;
system echo wait-group_commit_binlog_pos.test >> $MYSQLTEST_VARDIR/tmp/mysqld.1.expect;
SET SESSION debug="+d,crash_dispatch_command_before";
--error 2013
--error 2006,2013
SELECT 1;
connection con1;
--error 2013
--error 2006,2013
reap;
connection con3;
--error 2013
--error 2006,2013
reap;
system echo restart-group_commit_binlog_pos.test >> $MYSQLTEST_VARDIR/tmp/mysqld.1.expect;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment