mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-26 06:46:10 +00:00
ignore a case where we can't find an index trying to apply shards, it gets deleted on us
This commit is contained in:
parent
1bffe432a0
commit
be372bee7d
@ -333,7 +333,11 @@ public class IndicesClusterStateService extends AbstractLifecycleComponent<Indic
|
|||||||
|
|
||||||
|
|
||||||
for (final ShardRouting shardRouting : routingNodes) {
|
for (final ShardRouting shardRouting : routingNodes) {
|
||||||
final IndexService indexService = indicesService.indexServiceSafe(shardRouting.index());
|
final IndexService indexService = indicesService.indexService(shardRouting.index());
|
||||||
|
if (indexService == null) {
|
||||||
|
// got deleted on us, ignore
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
final int shardId = shardRouting.id();
|
final int shardId = shardRouting.id();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user