Any ideas on this one? I am still puzzled by this oddity.
Many thanks,
Markus
-Original message-
> From:Markus Jelsma
> Sent: Monday 24th April 2017 17:10
> To: solr-user@lucene.apache.org; solr-user
> Subject: RE: CloudDescriptor.getNumShards() sometimes returns nul
Sorry, forgot to mention the version, it is on 6.5.0.
Thanks,
Markus
-Original message-
> From:Erick Erickson
> Sent: Monday 24th April 2017 16:50
> To: solr-user
> Subject: Re: CloudDescriptor.getNumShards() sometimes returns null
>
> What version of Solr? This
ks,
> Markus
>
>
> -Original message-
>> From:Markus Jelsma
>> Sent: Friday 14th April 2017 17:25
>> To: solr-user
>> Subject: CloudDescriptor.getNumShards() sometimes returns null
>>
>> Hi - I've got this 2 shard/2 replica c
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();
>
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!