[CONJ-278] Improve prepared statement on failover Created: 2016-04-13  Updated: 2016-04-18  Resolved: 2016-04-18

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

Type: Task Priority: Minor
Reporter: Diego Dupin Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None


 Description   

PreparedStatement have a specific implementation for failover, since the concept is to send only data after a "prepare" has been done.
When this is used on a slave connection and a failover happen, if the master connection is up, prepare will be done on master to have no interruption and avoid forcing immediatly a reconnection to a slave to avoid a bottleneck that can even lead to JVM crash.

When a slave connection is recovered, the next execution has to use this slave connection, to avoid long running preparedStatement using master for too long



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

commit : https://github.com/MariaDB/mariadb-connector-j/commit/d46dedc1f8c365241bfd58411e68d47df0db2f8c
CI : https://travis-ci.org/MariaDB/mariadb-connector-j/builds/123963667

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