Skip to content
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 bug where race condition on ack callback could cause S3 folder partition to not be given up #4835

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

graytaylor0
Copy link
Member

@graytaylor0 graytaylor0 commented Aug 14, 2024

Description

There is a potential race condition where an S3 source folder partition can receive an acknowledgment callback at the same time as the partition is being updated for the acknowledgment wait, leading to failure to give up the folder partition. This results in objects not being processed from this folder until the acknowledgment timeout is hit, which is currently set to 2 hours

Check List

  • New functionality includes testing.
  • New functionality has a documentation issue. Please link to it in this PR.
    • New functionality has javadoc added
  • Commits are signed with a real name per the DCO

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.

…rtition to not be given up

Signed-off-by: Taylor Gray <[email protected]>
@kkondaka
Copy link
Collaborator

@graytaylor0 I am sure how the race condition is solved just by moving the code. Can you explain?

@graytaylor0 graytaylor0 merged commit 9a82590 into opensearch-project:main Aug 19, 2024
46 of 47 checks passed
@graytaylor0 graytaylor0 deleted the S3SourceAckBug branch August 19, 2024 21:15
kkondaka pushed a commit to kkondaka/kk-data-prepper-f2 that referenced this pull request Aug 20, 2024
…rtition to not be given up (opensearch-project#4835)

Signed-off-by: Taylor Gray <[email protected]>
Signed-off-by: Krishna Kondaka <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants