[CONJ-177] new high availability option : assureReadOnly Created: 2015-08-05  Updated: 2015-09-21  Resolved: 2015-09-21

Status: Closed
Project: MariaDB Connector/J
Component/s: Failover
Affects Version/s: None
Fix Version/s: 1.3.0

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

Sprint: Sprint connector/j 1.3.0

 Description   

When in a multiMaster cluster, when setting connection.setReadOnly(XXX), if database allow it, a SET SESSION TRANSACTION READ ONLY / READ WRITE depending on the XXX value will be executed.

That's permit to assure never execute write query when in read only mode.
The downside of this is a query is executing every change of connection.setReadOnly() just to assure that.

A new option assureReadOnly can be created to tell if this can be avoid.


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