Skip to content

Refactor MockAllocationService constructor#140153

Merged
elasticsearchmachine merged 28 commits intoelastic:mainfrom
ywangd:refactor-MockAllocationService
Jan 6, 2026
Merged

Refactor MockAllocationService constructor#140153
elasticsearchmachine merged 28 commits intoelastic:mainfrom
ywangd:refactor-MockAllocationService

Conversation

@ywangd
Copy link
Copy Markdown
Member

@ywangd ywangd commented Jan 5, 2026

This PR makes MockAllocationService constructor take an explicit ShardRoutingRoleStrategy parameter so that it can be customized.

Relates: #138333

Also support waiting for a condition before starting the restart node.
This PR makes MockAllocationService constructor take an explicit
ShardRoutingRoleStrategy parameter so that it can be customized.

Relates: elastic#138333
@ywangd ywangd requested a review from DaveCTurner January 5, 2026 08:04
@ywangd ywangd added >test Issues or PRs that are addressing/adding tests :Distributed/Allocation All issues relating to the decision making around placing a shard (both master logic & on the nodes) labels Jan 5, 2026
@ywangd ywangd added the v9.4.0 label Jan 5, 2026
@elasticsearchmachine elasticsearchmachine added the Team:Distributed Coordination (obsolete) Meta label for Distributed Coordination team. Obsolete. Please do not use. label Jan 5, 2026
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

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

Copy link
Copy Markdown
Member

@DaveCTurner DaveCTurner left a comment

Choose a reason for hiding this comment

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

LGTM thanks

@elasticsearchmachine elasticsearchmachine added the serverless-linked Added by automation, don't add manually label Jan 5, 2026
@ywangd ywangd added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Jan 5, 2026
@elasticsearchmachine elasticsearchmachine merged commit de0fb74 into elastic:main Jan 6, 2026
36 checks passed
@ywangd ywangd deleted the refactor-MockAllocationService branch January 6, 2026 00:32
breskeby pushed a commit to breskeby/elasticsearch that referenced this pull request Feb 11, 2026
breskeby pushed a commit to breskeby/elasticsearch that referenced this pull request Feb 11, 2026
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!) :Distributed/Allocation All issues relating to the decision making around placing a shard (both master logic & on the nodes) serverless-linked Added by automation, don't add manually Team:Distributed Coordination (obsolete) Meta label for Distributed Coordination team. Obsolete. Please do not use. >test Issues or PRs that are addressing/adding tests v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants