Fix underlying assumption of SessionTrack that not work well for MariaDB#603
Fix underlying assumption of SessionTrack that not work well for MariaDB#603elemount wants to merge 1 commit into
Conversation
Signed-off-by: elemount <lshuode@gmail.com>
|
So, in the initial handshake, MariaDB sends Right now, MySqlConnector follows the advice in capability negotiation:
It seems like the underlying bug is MySqlConnector's incorrect handling of the OK Packet. The state change data may only be read if the We need to save whether the server reported the availability of |
|
@bgrainger , Thank you so much. I tested the 0.49.1 and it resolved the problem for me. |
|
That is a typo and definitely not the change I meant to make. I'll release another version with the fixed code. Thanks for spotting it! |
|
@bgrainger , thank you. I've verified the 0.49.2 still works for me. |
The implies ProtocolCapabilities.SessionTrack is not correct for MariaDB, when MariaDB is behind a proxy like MaxScale.
MariaDB take such action
So if MariaDB is under a proxy(proxy does not set the capacity), it will throw such exception
Here is a workaround for it.