diff options
author | Monty <monty@mariadb.org> | 2016-08-21 20:38:47 +0300 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2016-08-21 20:38:47 +0300 |
commit | 5932fa789043fad1602a5ebb335adf4e7c860cdf (patch) | |
tree | 9a278b5cc085391c49fbd033dd5396a4a073fa78 /mysql-test/include | |
parent | 6f31dd093a245a21a69fd990f947611a5dcfb77b (diff) | |
download | mariadb-git-5932fa789043fad1602a5ebb335adf4e7c860cdf.tar.gz |
Fixed "Packets out of order" warning message on stdout in clients,
compiled for debugging, when the server goes down
This happens in the following scenario:
- Server gets a shutdown message
- Servers sends error ER_CONNECTION_KILLED to the clients connection
- The client sends a query to the server, before the server has time to
close the connection to the client
- Client reads the ER_CONNECTION_KILLED error message
In the above case, the packet number for the reply is one less than
what the client expected and the client prints "Packets out of order".
Fixed the following way:
- The client accepts now error packages with a packet number
one less than expected.
- To ensure that this issue can be detected early in my_real_read(), error
messages sent to the client are not compressed, even when compressed protocol is used.
Diffstat (limited to 'mysql-test/include')
-rw-r--r-- | mysql-test/include/wait_until_connected_again.inc | 2 | ||||
-rw-r--r-- | mysql-test/include/wait_until_disconnected.inc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/mysql-test/include/wait_until_connected_again.inc b/mysql-test/include/wait_until_connected_again.inc index 96240e36db7..6f64ef45440 100644 --- a/mysql-test/include/wait_until_connected_again.inc +++ b/mysql-test/include/wait_until_connected_again.inc @@ -14,7 +14,7 @@ while ($mysql_errno) # Strangely enough, the server might return "Too many connections" # while being shutdown, thus 1040 is an "allowed" error # See BUG#36228 - --error 0,1040,1053,2002,2003,2005,2006,2013 + --error 0,1040,1053,2002,2003,2005,2006,2013,1927 show status; dec $counter; diff --git a/mysql-test/include/wait_until_disconnected.inc b/mysql-test/include/wait_until_disconnected.inc index 71361682442..658bf0be739 100644 --- a/mysql-test/include/wait_until_disconnected.inc +++ b/mysql-test/include/wait_until_disconnected.inc @@ -12,7 +12,7 @@ while (!$mysql_errno) # Strangely enough, the server might return "Too many connections" # while being shutdown, thus 1040 is an "allowed" error. # See BUG#36228. - --error 0,1040,1053,2002,2003,2005,2006,2013 + --error 0,1040,1053,2002,2003,2005,2006,2013,1927 show status; dec $counter; |