public void applyFailedShards(FailedRerouteAllocation allocation) { for (FailedRerouteAllocation.FailedShard shard : allocation.failedShards()) { Releasables.close(asyncFetchStarted.remove(shard.shard.shardId())); Releasables.close(asyncFetchStore.remove(shard.shard.shardId())); } }
public void applyFailedShards(FailedRerouteAllocation allocation) { for (ShardRouting failedShard : allocation.failedShards()) { cachedStores.remove(failedShard.shardId()); cachedShardsState.remove(failedShard.shardId()); } }