Skip to content

Deprioritize master service#94318

Merged
DaveCTurner merged 2 commits intoelastic:mainfrom
DaveCTurner:2023-03-06-deprioritize-master-service
Mar 6, 2023
Merged

Deprioritize master service#94318
DaveCTurner merged 2 commits intoelastic:mainfrom
DaveCTurner:2023-03-06-deprioritize-master-service

Conversation

@DaveCTurner
Copy link
Copy Markdown
Member

The changes introduced in #92021 mean that the master service no longer needs to use a prioritized executor. Prioritized executors are weird, for instance they don't propagate rejections to AbstractRunnable tasks properly. This commit moves to using a regular scaling executor and removes some of the now-unnecessary workarounds for handling the prioritized executor's weirdness.

The changes introduced in elastic#92021 mean that the master service no longer
needs to use a prioritized executor. Prioritized executors are weird,
for instance they don't propagate rejections to `AbstractRunnable` tasks
properly. This commit moves to using a regular scaling executor and
removes some of the now-unnecessary workarounds for handling the
prioritized executor's weirdness.
@DaveCTurner DaveCTurner added >non-issue :Distributed/Cluster Coordination Cluster formation and cluster state publication, including cluster membership and fault detection. v8.8.0 labels Mar 6, 2023
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

@elasticsearchmachine elasticsearchmachine added the Team:Distributed Meta label for distributed team. label Mar 6, 2023
@Override
protected PrioritizedEsThreadPoolExecutor createThreadPoolExecutor() {
protected ExecutorService createThreadPoolExecutor() {
return new PrioritizedEsThreadPoolExecutor(
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I will address this one more thoroughly in a followup.

Copy link
Copy Markdown
Contributor

@henningandersen henningandersen left a comment

Choose a reason for hiding this comment

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

LGTM.

@DaveCTurner DaveCTurner merged commit b61fc12 into elastic:main Mar 6, 2023
@DaveCTurner DaveCTurner deleted the 2023-03-06-deprioritize-master-service branch March 6, 2023 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/Cluster Coordination Cluster formation and cluster state publication, including cluster membership and fault detection. >non-issue Team:Distributed Meta label for distributed team. v8.8.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants