lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Jelsma <markus.jel...@openindex.io>
Subject RE: CloudDescriptor.getNumShards() sometimes returns null
Date Mon, 24 Apr 2017 09:24:59 GMT
Hi - that (RE: Overseer session expires on multiple collection creation) was the wrong thread.
I meant, any ideas on this one?

Many thanks,
Markus

 
-----Original message-----
> From:Markus Jelsma <markus.jelsma@openindex.io>
> Sent: Friday 14th April 2017 17:25
> To: solr-user <solr-user@lucene.apache.org>
> Subject: CloudDescriptor.getNumShards() sometimes returns null
> 
> Hi - I've got this 2 shard/2 replica cluster. In handler i need the number of shards
of the cluster.
> 
>         cloudDescriptor = core.getCoreDescriptor().getCloudDescriptor();
>         return cloudDescriptor.getNumShards();
> 
> It is, however, depending on which node is executing this, sometimes null! This code
only runs on shard leaders. First replica of the first shard always returns 2, but second
replica of shard one, even when it is the leader, always gets me null. Same appears to be
true for the second shard.
> 
> I am clearly missing something, any ideas to share?
> 
> Thanks,
> Markus
> 

Mime
View raw message