mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
fix(sqs): wake FIFO long polls after deleting messages (#9104)
Deleting an in-flight FIFO message now wakes parked long-poll receivers, so the next message in its group is delivered at once instead of on the next polling retry. The shared delete path covers DeleteMessage and DeleteMessageBatch. Closes #9087
This commit is contained in:
1 parent
ff997036a6
commit
9f04981041
2 files changed
+66
No files matched your search
@@ -1703,6 +1703,9 @@ public class SqsService implements Resettable, ResourceProvider {
|
||||
LOG.debugv("No message for receipt handle {0}", receiptHandle);
|
||||
return;
|
||||
}
|
||||
if (queue.isFifo()) {
|
||||
notifyReceivers(storageKey);
|
||||
}
|
||||
LOG.debugv("Deleted message with receipt handle {0}", receiptHandle);
|
||||
if (LOG.isTraceEnabled()) {
|
||||
Message m = removal.message();
|
||||
|
||||
Reference in new issue
Block a user