mirror of
https://github.com/floci-io/floci.git
synced 2026-11-27 07:39:24 -05:00
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:
1 parent
94bdfa462b
commit
5db958c201
2 files changed
+44
-1
No files matched your search
+5
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user