SQS message not deleted after successful acknowledgement #1489
-
|
Hi, its me again :) We observe a strange behaviour in one of our applications. We consume SQS messages from a FIFO queue, handle them and that's it. We use immediate acknowledgement but also tried manual acknowledgement and the behaviour is the same. Sometimes (5 times a day while processing ~10k messages) it happens that a message is successfully handled, acknowledged/deleted but SQS delivers it again after the visibility timeout. We turned on debug logs for There's no other log around this time. We created a Cloudtrail for this queue and there's no What makes this even more weird:
Any idea what could cause this from a awspring perspective? Thank you :) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
Followup question: was looking around in the code and I wonder what happens when the deleteMessageBatch call is successful but contains error. There's no log line about this right? |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the heads up @otbe, good catch. We could definitely add logging there to detect failed acknowledgements within an otherwise successful acknowledgement batch. Would you be up for opening an issue, and perhaps contributing the change? Another idea down the line could be surfacing the result in Let me know your thoughts, thanks. |
Beta Was this translation helpful? Give feedback.
-
|
Created this issue @otbe, feel free to contribute a PR if you'd like. |
Beta Was this translation helpful? Give feedback.

Thanks for the heads up @otbe, good catch. We could definitely add logging there to detect failed acknowledgements within an otherwise successful acknowledgement batch.
Would you be up for opening an issue, and perhaps contributing the change?
Another idea down the line could be surfacing the result in
AcknowledgementResultCallback, likely via Message Headers, but logging looks like a solid first step.Let me know your thoughts, thanks.