Skip to content

Conversation

@DaveCTurner
Copy link
Contributor

Coordinator#getStateForMasterService will rebuild the state to add a
no-master block, which can be rather expensive if there are lots of
index blocks to process too. This commit replaces most of its usages
with something cheaper.

Relates #97295

`Coordinator#getStateForMasterService` will rebuild the state to add a no-master block, which can be rather expensive if there are lots of index blocks to process too. This commit replaces most of its usages with something cheaper. Relates elastic#97295
@DaveCTurner DaveCTurner added >bug :Distributed Coordination/Cluster Coordination Cluster formation and cluster state publication, including cluster membership and fault detection. v8.10.0 v8.9.1 labels Jul 2, 2023
@elasticsearchmachine elasticsearchmachine added the Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. label Jul 2, 2023
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine
Copy link
Collaborator

Hi @DaveCTurner, I've created a changelog YAML for you.

Copy link
Contributor

@original-brownbear original-brownbear left a comment

Choose a reason for hiding this comment

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

LGTM nice one :)

@DaveCTurner DaveCTurner added auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) auto-backport-and-merge labels Jul 9, 2023
@elasticsearchmachine elasticsearchmachine merged commit 2ae5aac into elastic:main Jul 9, 2023
@DaveCTurner DaveCTurner deleted the 2023/07/01/getStateForMasterService-is-expensive branch July 9, 2023 19:47
DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this pull request Jul 9, 2023
`Coordinator#getStateForMasterService` will rebuild the state to add a no-master block, which can be rather expensive if there are lots of index blocks to process too. This commit replaces most of its usages with something cheaper. Relates elastic#97295
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.9
elasticsearchmachine pushed a commit that referenced this pull request Jul 9, 2023
`Coordinator#getStateForMasterService` will rebuild the state to add a no-master block, which can be rather expensive if there are lots of index blocks to process too. This commit replaces most of its usages with something cheaper. Relates #97295
@rjernst rjernst added v8.9.0 and removed v8.9.1 labels Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) >bug :Distributed Coordination/Cluster Coordination Cluster formation and cluster state publication, including cluster membership and fault detection. Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. v8.9.0 v8.10.0

4 participants