-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix visibility timeout errors (#4812) #4831
Fix visibility timeout errors (#4812) #4831
Conversation
Signed-off-by: Daniel Li <[email protected]>
@danhli Thanks for working on this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, this change makes sense after looking closely.
Basically, it seems that we started processing the messages in order, but without the acknowledgement set, we were not changing the visibility timeout. With this change, we will have acknowledgement sets that are going to trigger the change visibility timeout while processing the messages.
} | ||
|
||
if (endToEndAcknowledgementsEnabled) { | ||
LOG.info("Created acknowledgement sets for {} messages.", parsedMessagesToRead.size()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's make this a debug
level log. Otherwise, we'll have too many logs generated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK. I will update the log level to debug
.
Signed-off-by: Daniel Li <[email protected]>
@kkondaka I ran the following tests to validate the changes.
|
Fix visibility timeout errors (#4812) Signed-off-by: Daniel Li <[email protected]> (cherry picked from commit 910533a)
Fix visibility timeout errors (#4812) Signed-off-by: Daniel Li <[email protected]> (cherry picked from commit 910533a) Co-authored-by: Daniel Li <[email protected]>
Description
The change fixes the visibility timeout errors by creating acknowledgement sets for all the messages from a SQS ReceiveMessage call before additional processing.
Issues Resolved
Resolves #4812
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.