LP686006 : maria recovery tests fail.

All failing cases were attempts to use connection after
the server was brought down and restarted. Connections 
used client reconnect option.

The reason for failures is the behavior of sockets on Windows:
for a short period after crash (short enough to make the error 
not reproducible under debugger), write to socket on client
side would succeed but subsequent read would fail. 

MYSQL_OPT_RECONNECT does not really help in this case ,
because  in the case given here ,as  mysql_real_query() 
(which can handle reconnect option)  succeeds and 
mysql_read_results() (can't handle reconnect) fails.

The fix is adding --include wait_until_connected_again.inc to 
appropriate places in test. This ensures that read errors are 
caught and connection is recreated.
This commit is contained in:
Vladislav Vaintroub 2011-03-30 21:26:31 +02:00
parent 6f20e3a385
commit 1d8cfe3c77
2 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,7 @@
# cover tables mysqltest.$mms_tname1,...$mms_tnameN
connection admin;
--source include/wait_until_connected_again.inc
let $mms_table_to_use=$mms_tables;
let $mms_purpose=comparison;

View File

@ -11,6 +11,7 @@
connection admin;
--source include/wait_until_connected_again.inc
let $mms_table_to_use=$mms_tables;
let $mms_purpose=feeding_recovery;