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

[BUG] Flint job hangs if no streaming job launched #227

Closed
dai-chen opened this issue Jan 17, 2024 · 0 comments
Closed

[BUG] Flint job hangs if no streaming job launched #227

dai-chen opened this issue Jan 17, 2024 · 0 comments
Assignees
Labels
0.1.1 0.2 bug Something isn't working

Comments

@dai-chen
Copy link
Collaborator

What is the bug?

For recover statement, it won't start streaming job at background if the Flint index doesn't exist. Flint job hangs there in this case.

What is the expected behavior?

Flint job stops if no streaming job launched by the SQL statement submitted.

Possible solution is to check if there is streaming job before calling awaitTermination(): https://github.com/opensearch-project/opensearch-spark/blob/main/spark-sql-application/src/main/scala/org/apache/spark/sql/JobOperator.scala#L88

Do you have any additional context?

CREATE INDEX IF NOT EXIST ... WITH (auto_refresh = true) may have same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.1.1 0.2 bug Something isn't working
Development

No branches or pull requests

1 participant