Skip to content

Add validation of the number_of_shards to the beginning of the ILM shrink step #72724

@joegallo

Description

@joegallo
Contributor

The ILM shrink action can't succeed if the requested number_of_shards won't work with the index's number_of_shards. An example of that would be if the index currently has 3 shards, the policy tries to shrink it down to 2 shards.

Rather than running the set-single-node-allocation allocation step successfully and then failing at the shrink step, we should have validation that checks for this scenario and fails the shrink action without having moved the shards around.

Activity

elasticmachine

elasticmachine commented on May 4, 2021

@elasticmachine
Collaborator

Pinging @elastic/es-core-features (Team:Core/Features)

joegallo

joegallo commented on May 4, 2021

@joegallo
ContributorAuthor

Related to #56062 because this could be one of the potential failure cases mentioned there.

andreidan

andreidan commented on Nov 15, 2021

@andreidan
Contributor

Fixed by #76565

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @joegallo@andreidan@gwbrown@elasticmachine

        Issue actions

          Add validation of the number_of_shards to the beginning of the ILM shrink step · Issue #72724 · elastic/elasticsearch