[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. A new option assureReadOnly can be created to tell if this can be avoid. |