You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Markus Jelsma <ma...@openindex.io> on 2017/08/10 10:34:22 UTC
6.6.0 getNumShards() NPE?!
Hello,
Having trouble, again, with CloudDescriptor and friend, getting the number of shards of the collection. It sometimes returns 1 for a collection of two shards. Having this code:
cloudDescriptor = core.getCoreDescriptor().getCloudDescriptor();
return cloudDescriptor.getNumShards();
In some cases cloudDescriptor.getNumShards() throws an NPE. Am i doing something wrong?
Thanks,
Markus