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

Add ttl to all dynamo source coordination store items on creation, not just when they are COMPLETED #3121

Merged
merged 2 commits into from
Aug 9, 2023

Conversation

graytaylor0
Copy link
Member

@graytaylor0 graytaylor0 commented Aug 8, 2023

Description

Previously, if TTL was enabled on the dynamo db store for source coordination, only COMPLETED partitions would get a TTL and expire after the duration specified in the config.

This change makes it so that the TTL is set on every item in the store on item creation and extended when the item is updated, not just the COMPLETED partitions.

Check List

  • New functionality includes testing.
  • New functionality has been documented.
    • 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.

…t just when they are COMPLETED

Signed-off-by: Taylor Gray <[email protected]>
cmanning09
cmanning09 previously approved these changes Aug 8, 2023
Copy link
Contributor

@cmanning09 cmanning09 left a comment

Choose a reason for hiding this comment

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

The change looks good to me.

Just for clarification - the advantage to making this change is that all items in the ddb source coordination store will have a ttl for retrying. Am I reading into this correctly?

@graytaylor0
Copy link
Member Author

graytaylor0 commented Aug 8, 2023

The change looks good to me.

Just for clarification - the advantage to making this change is that all items in the ddb source coordination store will have a ttl for retrying. Am I reading into this correctly?

Yes all items will get the ttl now if it is configured on the store, instead of just the COMPLETED items.

@graytaylor0 graytaylor0 merged commit 57bfc24 into opensearch-project:main Aug 9, 2023
24 checks passed
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