Skip to content

Commit e72db2b

Browse files
committed
Fix buggy test that fails due to "error: packets out of order" message in the trace file
when EXTRA_DEBUG is enabled. The reason for the error message is that a query was issued with send, but response was not read with reap.
1 parent 2def71f commit e72db2b

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

mysql-test/t/loadxml.test

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,17 @@ sleep 3;
7777

7878

7979
connection default;
80-
sleep 1;
8180

8281
--disable_query_log
8382
--eval kill $PSEUDO_THREAD_ID
84-
sleep 2;
85-
--enable_query_log
86-
83+
connection addconroot;
84+
# Read response from connection to avoid packets out-of-order when disconnecting
85+
# Note, that connection can already be dead due to previously issued kill
86+
--error 0,2013
87+
--reap
8788
disconnect addconroot;
88-
89+
connection default;
90+
--enable_query_log
8991
#
9092
# Clean up
9193
#

0 commit comments

Comments
 (0)