All notable changes to this project are documented here. The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Checked exceptions thrown by a method annotated with @FollowerRead,
@VirtualCluster, @Region, @Workload, @CrdbRetry or
@Transactional(retry = true) now reach the caller as the original instance,
honoring the method's throws contract.
- Annotated methods no longer wrap a thrown checked exception in a generic
RuntimeException. A method declaredthrows IOExceptionnow throwsIOExceptionto its caller. Previously the original exception was wrapped and its type was lost. (CrdbContext.with,RetryEngine.run, and the interface proxy no longer re-wrap.)
- Code that caught the wrapping
RuntimeExceptionaround an annotated call now sees the original checked exception instead.RuntimeExceptionandErrorcontinue to propagate unchanged.
0.1.2 - 2026-10-28
@FollowerRead can now target a specific staleness, and rejects invalid values
instead of silently reading current data.
hoursAgo,minutesAgoandsecondsAgoattributes on@FollowerRead. They add up and compose toAS OF SYSTEM TIME '-Ns'. With nothing set, the read still usesfollower_read_timestamp().
CrdbDispatcherresolves the staleness expression through a newfollowerReadStaleness(...)helper. When any ofhoursAgo/minutesAgo/secondsAgois set, the composed interval takes precedence over the defaultstalenessstring; the existingstalenessattribute is retained and behaves exactly as before when no parts are set.
- A negative
hoursAgo/minutesAgo/secondsAgonow throwsIllegalStateExceptionwhen the annotation is processed, rather than producing an invalid clause.
- The core
@FollowerReadonly emitsAS OF SYSTEM TIMEwhen the annotated method runs within a transaction (TransactionTemplate). Opening a dedicated read-only transaction for a bare@FollowerReadis handled by the Spring Boot starter, not the core library.