Skip to content

Comments

Add retry support to JDBC Transacter#3684

Open
aparajon wants to merge 1 commit intomasterfrom
jdbc-transacter-retry-2026-02-19
Open

Add retry support to JDBC Transacter#3684
aparajon wants to merge 1 commit intomasterfrom
jdbc-transacter-retry-2026-02-19

Conversation

@aparajon
Copy link
Collaborator

@aparajon aparajon commented Feb 23, 2026

Summary

Adds retries(maxAttempts) and noRetries() methods to the JDBC Transacter interface, bringing it in line with Hibernate and jOOQ retry support.

- Add retries(maxAttempts) and noRetries() methods to Transacter interface
- Implement retry logic in RealTransacter using misk.backoff.retry
- Use DefaultExceptionClassifier for database-specific retry decisions
- Pass DataSourceConfig to RealTransacter for database type awareness
- Add unit tests for retry behavior

This brings JDBC transacter in line with Hibernate's retry support,
enabling services using raw JDBC (like outbox and permit) to benefit
from automatic transaction retries on recoverable errors.
@aparajon aparajon force-pushed the jdbc-transacter-retry-2026-02-19 branch from c07a4c1 to a5ebd19 Compare February 23, 2026 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants