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

Make acknowledgment_timeout configurable for s3 scan source, configure timeout to 10 minutes for MongoDB L2 transform #4988

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

graytaylor0
Copy link
Member

Description

If there is some reason that causes partition for s3 scan to not be given up, or if the acknowledgment is never received for a partition, s3 scan defaults to a 2 hour acknowledgment wait before reprocessing. For mongodb pipelines, this can cause high delay for some records, and these pipelines are meant to be low latency.

This change adds an acknowledgment_timeout parameter to S3 scan, and sets it to 10 minutes in the DocumentDB L2 transform.

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.

@@ -27,6 +27,7 @@

public class S3SourceConfig {
static final Duration DEFAULT_BUFFER_TIMEOUT = Duration.ofSeconds(10);
static final Duration DEFAULT_ACKNOWLEDGMENT_TIMEOUT = Duration.ofSeconds(10);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this constant used ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not used. Will remove

dinujoh
dinujoh previously approved these changes Sep 30, 2024
…e timeout to 10 minutes for MongoDB L2 transform

Signed-off-by: Taylor Gray <[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