Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure autoexpand keeps shards on remaining nodes #119829

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

idegtiarenko
Copy link
Contributor

Adding a test that ensures that during node replacement autoexpand
removes a shard from node to be shutdown (and not any other node)
and adds a new one to the replacement node.

Adding a test that ensures that during node replacement autoexpand
removes a shard from node to be shutdown (and not any other node)
and adds a new one to the replacement node.
@idegtiarenko idegtiarenko added >test Issues or PRs that are addressing/adding tests :Distributed Coordination/Allocation All issues relating to the decision making around placing a shard (both master logic & on the nodes) auto-backport Automatically create backport pull requests when merged v9.0.0 Team:Distributed Coordination Meta label for Distributed Coordination team v8.18.0 labels Jan 9, 2025
@elasticsearchmachine
Copy link
Collaborator

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

@idegtiarenko idegtiarenko requested review from DaveCTurner and removed request for henningandersen January 9, 2025 12:40
@idegtiarenko idegtiarenko changed the title Ensure keep autoexpand keep shards of remaining nodes Ensure autoexpand keeps shards on remaining nodes Jan 9, 2025
@idegtiarenko idegtiarenko requested a review from pxsalehi January 10, 2025 07:20
@@ -405,6 +412,75 @@ private void assertThatAutoExpandReplicasDidNotContract(IndexMetadata indexMetad
);
}

public void testShouldKeepAllShardOnRemainingNodes() {
Copy link
Member

Choose a reason for hiding this comment

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

why not an IT?

@@ -207,6 +215,51 @@ public void testAutoExpandDuringNodeReplacement() {
);
}

@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/119843")
public void testShouldKeepAllShardOnRemainingNodes() {
Copy link
Member

@pxsalehi pxsalehi Jan 10, 2025

Choose a reason for hiding this comment

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

I find it odd to introduces a test that is muted. IMO, this belongs to a PR that also includes a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Automatically create backport pull requests when merged :Distributed Coordination/Allocation All issues relating to the decision making around placing a shard (both master logic & on the nodes) Team:Distributed Coordination Meta label for Distributed Coordination team >test Issues or PRs that are addressing/adding tests v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants