Skip to content

ResizeAllocationDecider should handle deleted source index #140630

@ywangd

Description

@ywangd

I believe this is a bug introduced in 9.0. When the source index is deleted, the ResizeAllocationDecider throws on null index metadata due to the usage of projectFor. But the code is mean to handle null indexMetadata as indicate by the null check right after the line. Indeed, the version in 8.19 handles null properly.

Throwing exception on null can break desired balance computation and effectively stops the allocation process. We should fix it by handling deleted source index properly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    :Distributed/AllocationAll issues relating to the decision making around placing a shard (both master logic & on the nodes)>bugTeam:Distributed Coordination (obsolete)Meta label for Distributed Coordination team. Obsolete. Please do not use.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions