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 issue of skipping new partitions for source coordinator #3319

Merged

Conversation

graytaylor0
Copy link
Member

@graytaylor0 graytaylor0 commented Sep 8, 2023

Description

Fixes a couple of issues related to the OpenSearch source

  • The LeaseBasedSourceCoordinator is currently skipping the processing of new indices for the OpenSearch source because it returns instead of continues when being provided with a partition that already exists. While less likely because of the lastModifiedAt timestamp being tracked in the s3 source global state, this could still happen for the s3 source in some scenarios
  • Potential NPE in stop method of the os source if it crashes before the OpenSearch service is initialized
  • Add debug logs in the OpenSearch source supplier to log count of indices that are found from a cat/indices call

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.

@graytaylor0 graytaylor0 changed the title Fix skipping of new partitions Fix issue of skipping new partitions/indices for the opensearch source Sep 8, 2023
@graytaylor0 graytaylor0 merged commit 778e9c7 into opensearch-project:main Sep 12, 2023
23 checks passed
@graytaylor0 graytaylor0 changed the title Fix issue of skipping new partitions/indices for the opensearch source Fix issue of skipping new partitions for source coordinator Sep 25, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 25, 2023
#3319)

Fix issue where the source coordinator would skip creating partitions for new items for the os source

Signed-off-by: Taylor Gray <[email protected]>

---------

Signed-off-by: Taylor Gray <[email protected]>
(cherry picked from commit 778e9c7)
asifsmohammed pushed a commit that referenced this pull request Sep 26, 2023
#3319) (#3383)

Fix issue where the source coordinator would skip creating partitions for new items for the os source

Signed-off-by: Taylor Gray <[email protected]>

---------

Signed-off-by: Taylor Gray <[email protected]>
(cherry picked from commit 778e9c7)

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

Successfully merging this pull request may close these issues.

3 participants