Skip to content

Allow ILM's Shrink Action to progress successfully on indices with 1 shard #33275

@bmcconaghy

Description

@bmcconaghy

When a user specifies the shrink action and the index it is supposed to shrink already has only 1 shard, this error crops up:

    "failed_step": "shrink",
    "phase": "warm",
    "action_time": "1535643967009",
    "rollover_alias": "thing-alias",
    "phase_time": "1535643367314",
    "step_info": "{\"type\":\"illegal_argument_exception\",\"reason\":\"can't shrink an index with only one shard\"}",

ILM should just noop this (or shrink should).

Metadata

Metadata

Assignees

No one assigned

    Labels

    :Data Management/ILM+SLMDO NOT USE. Use ":StorageEngine/ILM" or ":Distributed Coordination/SLM" instead.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions