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

Terminate streaming job when index data is deleted #500

Conversation

dai-chen
Copy link
Collaborator

@dai-chen dai-chen commented Jul 30, 2024

Description

This PR adds the capability to terminate the streaming job when the associated Flint data index no longer exists. The termination is managed by the index monitor rather than the Spark streaming listener, ensuring that the job can be terminated even if it remains idle without any new micro-batches being triggered.

Please note that this PR solely addresses the termination of the streaming job and the index monitor itself. The handling of dangling metadata log entries will be addressed in the upcoming PR for issue #356.

Issues Resolved

#244

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.

@dai-chen dai-chen added bug Something isn't working 0.5 labels Jul 30, 2024
@dai-chen dai-chen self-assigned this Jul 30, 2024
@dai-chen dai-chen force-pushed the terminate-streaming-job-if-data-deleted branch 2 times, most recently from a5fc8cc to 30d0820 Compare August 1, 2024 23:04
@dai-chen dai-chen marked this pull request as ready for review August 1, 2024 23:54
@dai-chen dai-chen force-pushed the terminate-streaming-job-if-data-deleted branch from 30d0820 to 68d4b72 Compare August 7, 2024 18:28
@dai-chen dai-chen requested a review from noCharger August 7, 2024 22:42
@dai-chen dai-chen merged commit bcd1942 into opensearch-project:main Aug 8, 2024
4 checks passed
@dai-chen dai-chen deleted the terminate-streaming-job-if-data-deleted branch August 8, 2024 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.5 bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants