fix(redshift-data): isolate receipt sweep failures (#6376)

Continue terminal statement eviction when receipt cleanup fails, preserving active and fresh statements across accounts.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
This commit is contained in:
Andre Kurait authored and GitHub committed 2026-10-23 16:05:46 -04:00
1 parent 94bdfa462b
commit 5db958c201
2 files changed
+44 -1

No files matched your search

@@ -132,7 +132,11 @@ class RedshiftDataStatementStore {
void sweep() {
if (idempotency != null) {
idempotency.sweep();
try {
idempotency.sweep();
} catch (RuntimeException failure) {
LOG.warnv(failure, "Failed to sweep expired Redshift Data API client-token receipts");
}
}
Instant cutoff = Instant.now(clock).minus(ttl);
// The sweep thread has no request context, so it iterates every account's partition