fix issue with CuratorLoadQueuePeon shutting down executors it does not own#8140
Merged
jon-wei merged 3 commits intoapache:masterfrom Jul 24, 2019
Merged
Conversation
jihoonson
approved these changes
Jul 23, 2019
Contributor
jihoonson
left a comment
There was a problem hiding this comment.
Thanks for the quick fix!
jon-wei
reviewed
Jul 23, 2019
|
|
||
| queuedSize.set(0L); | ||
| failedAssignCount.set(0); | ||
| processingExecutor.shutdown(); |
Contributor
There was a problem hiding this comment.
Should we shut these down somewhere? (Maybe tie LoadQueueTaskMaster to lifecycle and shutdown the execs there?)
Member
Author
There was a problem hiding this comment.
That seems reasonable, 👍
Member
Author
There was a problem hiding this comment.
Used the factory passed into the method in CliCoordinator to create the executors, which itself appears to be under lifecycle.
Member
Author
There was a problem hiding this comment.
Ah, that won't work...
Member
Author
There was a problem hiding this comment.
Ah, that won't work...
Fixed to use ExecutorServices.manageLifecycle to tie the executors to the main service lifecycle.
jon-wei
approved these changes
Jul 24, 2019
gianm
pushed a commit
to implydata/druid-public
that referenced
this pull request
Jul 24, 2019
…ot own (apache#8140) * fix issue with CuratorLoadQueuePeon shutting down executors it does not own * use lifecycled executors * maybe this
clintropolis
added a commit
to clintropolis/druid
that referenced
this pull request
Jul 24, 2019
…ot own (apache#8140) * fix issue with CuratorLoadQueuePeon shutting down executors it does not own * use lifecycled executors * maybe this
gvsmirnov
pushed a commit
to Plumbr/druid
that referenced
this pull request
Aug 22, 2019
…ot own (apache#8140) (apache#8151) * fix issue with CuratorLoadQueuePeon shutting down executors it does not own * use lifecycled executors * maybe this
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #8137.
Description
#7088 implemented parallel loading for
CuratorLoadQueuePeon, but is incorrectly shutting down the peon executor and callback executor that is shared by all peons in the stop method of any peon. This means that the coordinator will operate correctly until a server disappears for any reason, which will then lead to an exception of the form:as described in #8137.
This PR fixes the issue by not shutting down the executors.
This PR has: