Skip to content

make MonitorPartition thread a daemon#1410

Merged
sborya merged 1 commit intoapache:masterfrom
sborya:master
Aug 7, 2020
Merged

make MonitorPartition thread a daemon#1410
sborya merged 1 commit intoapache:masterfrom
sborya:master

Conversation

@sborya
Copy link
Contributor

@sborya sborya commented Aug 7, 2020

Symptom: sometime when application is shutting down, the MonitorPartion thread will prevent it from shutting down completely.

Cause: The reason is that this thread is not a daemon thread, so if it hangs (because of other parts are shutting down), the application will wait (indefinitely) until it completes the shutdown.

Changes: mark the thread a daemon thread.

@sborya sborya requested a review from lhaiesp August 7, 2020 16:00
@mynameborat
Copy link
Contributor

Thanks for the fix!
Can you update the PR description and title to follow - https://cwiki.apache.org/confluence/display/SAMZA/SEP-25%3A+PR+Title+And+Description+Guidelines before merging the change.

@sborya sborya merged commit c8bf03d into apache:master Aug 7, 2020
@sborya
Copy link
Contributor Author

sborya commented Aug 7, 2020

Thanks for the fix!
Can you update the PR description and title to follow - https://cwiki.apache.org/confluence/display/SAMZA/SEP-25%3A+PR+Title+And+Description+Guidelines before merging the change.

Sure. Will do.

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