mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
check if index service is null, and don't load percolators in this case
This commit is contained in:
parent
36edcef640
commit
f20c6ec9cf
@ -213,7 +213,11 @@ public class PercolatorService extends AbstractIndexComponent {
|
|||||||
}
|
}
|
||||||
// we are only interested when the first shard on this node has been created for an index
|
// we are only interested when the first shard on this node has been created for an index
|
||||||
// when it does, fetch the relevant queries if not fetched already
|
// when it does, fetch the relevant queries if not fetched already
|
||||||
if (indicesService.indexService(indexShard.shardId().index().name()).numberOfShards() != 1) {
|
IndexService indexService = indicesService.indexService(indexShard.shardId().index().name());
|
||||||
|
if (indexService == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (indexService.numberOfShards() != 1) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
synchronized (mutex) {
|
synchronized (mutex) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user