ignore a case where we can't find an index trying to apply shards, it gets deleted on us

This commit is contained in:
kimchy 2011-02-20 02:04:44 +02:00
parent 1bffe432a0
commit be372bee7d

View File

@ -333,7 +333,11 @@ public class IndicesClusterStateService extends AbstractLifecycleComponent<Indic
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();