[CONJ-289] PrepareStatement on master reconnection after a failover Created: 2016-04-28  Updated: 2016-04-28  Resolved: 2016-04-28

Status: Closed
Project: MariaDB Connector/J
Component/s: Failover
Affects Version/s: 1.4.3
Fix Version/s: 1.4.4

Type: Bug Priority: Critical
Reporter: Diego Dupin Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None


 Description   

When using prepareStatement on server side and cache prepareStatement is activate (default configuration) on a master-slaves configuration :

If the prepareStatement is to be executed on master, after a failover, the first execution will work, but next executions will be executed on slaves.
Resulting error will be :
"The MySQL server is running with the --read-only option so it cannot execute this statement"

This concern only version 1.4.3



 Comments   
Comment by Diego Dupin [ 2016-04-28 ]

correction commit : https://github.com/MariaDB/mariadb-connector-j/commit/d50a38cbc0fd47f9295d6d947ae6ea3d8c805457

Generated at Thu Feb 08 03:14:34 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.