[CONJ-729] Read-only transaction with auto-commit=false not committed when using Master/slave or Aurora configuration Created: 2019-09-04 Updated: 2019-09-13 Resolved: 2019-09-12 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | aurora, Failover |
| Affects Version/s: | 2.4.0, 2.4.1, 2.4.2, 2.4.3 |
| Fix Version/s: | 2.4.4 |
| Type: | Bug | Priority: | Blocker |
| Reporter: | Lenne | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Setup
Issue: Findings Since Aurora read instances are always REPEATABLE_READ, and we use auto-commit false, the transaction will be kept alive without a COMMIT, which explains the stale date. When we use driver version 2.3.0 we don't see this issue since protocol.inTransaction() correctly indicates the transaction is active, and a commit occurs at the end of the getCount method. We have currently reverted back to version 2.3.0. |
| Comments |
| Comment by Lenne [ 2019-09-06 ] |
|
While debugging it seemed like
So it seems like it was trying to commit on the connection to the master, which did not have a transaction running, instead of on the connection to the slave. |