Open magnusjt opened 7 years ago
if underlying tcp connection is killed it probably does not matter
I think 'is fatal' is important for connection pool, when we know that connection cannot be reused despite stream is still open
It's also important when running a query because it can be used to decide to retry the query later.
Found a bit more info here: https://github.com/PyMySQL/PyMySQL/issues/526
I can also see the mentioned error in my logs: Warning: got packets out of order. Expected 1 but received 0
@magnusjt thanks! I'll try to reproduce with maria and have a look
This a bit of an obscure one. Using mariadb, I'm able to get the following error if the database is stopped during a query:
errno: 1927 sqlstate: 70100 (query interrupted) fatal: false
I'm wondering if the error should be fatal since the connection is killed.
The error code is specific to mariadb: https://mariadb.com/kb/en/mariadb/mariadb-error-codes/