feat(idempotent): add support for autocommit retries (#1759)
This update introduces automatic retries for auto-commit queries executed via session `run` methods. At present, the driver performs a single immediate retry, and only for idempotent errors.
This behaviour is enabled by default, but can be disabled at both the driver and session levels.
Driver configuration:
```java
var config = Config.builder()
.withAutoCommitRetriesDisabled(true) // Defaults to false
.build();
```
Session configuration:
```java
var config = SessionConfig.builder()
.withAutoCommitRetriesMode(AutoCommitRetriesMode.DISABLED) // Defaults to AutoCommitRetriesMode.DEFAULT that delegates to driver configuration
.build();
``` D
Dmitriy Tverdiakov committed
3439d705a00f0154bdaa939411d5e4a616b44f8a
Parent: e19560d
Committed by GitHub <noreply@github.com>
on 4/30/2026, 4:23:33 PM