Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.4.2
-
Fix Version/s: 2.4.3
-
Component/s: readwritesplit
-
Labels:None
Description
When the first query executed by a session configured with lazy_connect is SET autocommit=0, a connection to the master server is created. The connection creation code which picks a server to use does not update the current master server pointer if the selected server is a master. As a result of this, queries will fail and the session will be closed.