Allocator changes to support tiering with replicas #14850
Labels
bug
Something isn't working
Storage:Durability
Issues and PRs related to the durability framework
Storage:Resiliency
Issues and PRs related to the storage resiliency
Storage
Issues and PRs relating to data and metadata storage
For a lot of decider checks in AllocationService, while working on replica shards, the corresponding primary shard is required. This can lead to edge cases in tiering, where primary has relocated, but replica has not. The split pool information will only hold one of the shard causing NPE.
To avoid this, one of the solutions is - as part of tiering, we could add a shadowNode to each routing pool. This shadowRoutingNode object, would be a dummy routingNode added only to answer decider queries. It should neither accept shards, nor move shards out.
The text was updated successfully, but these errors were encountered: