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 shutdown bug due to non-daemon thread in driver #292

Merged
merged 1 commit into from
Mar 21, 2024

Conversation

kaituo
Copy link
Collaborator

@kaituo kaituo commented Mar 20, 2024

Description

Similar to #175, this PR adds shutdown logic in FlintJob.

Tests:

  • Verified in IT if terminateJVM is enabled, JVM would shut down.

Issues Resolved

#270

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.

Similar to opensearch-project#175, this PR adds shutdown logic in FlintJob.

Tests:
* Verified in IT if terminateJVM is enabled, JVM would shut down.

Signed-off-by: Kaituo Li <[email protected]>
@dai-chen dai-chen added bug Something isn't working 0.3 labels Mar 21, 2024
@@ -34,6 +34,8 @@ trait FlintJobExecutor {
var threadPoolFactory: ThreadPoolFactory = new DefaultThreadPoolFactory()
var envinromentProvider: EnvironmentProvider = new RealEnvironment()
var enableHiveSupport: Boolean = true
// termiante JVM in the presence non-deamon thread before exiting
var terminateJVM = true
Copy link
Collaborator

Choose a reason for hiding this comment

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

so this variable is only for test?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes.

@kaituo kaituo merged commit eb03705 into opensearch-project:main Mar 21, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.3 bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants