I'm sorry I am not able to reproduce this issue. I started 5 solr-4.4 instances. I copied example directory into example1, example2, example3 and example4 cd example; java -Dbootstrap_confdir=./solr/collection1/conf -Dcollection.configName=myconf -DzkRun -DnumShards=1 -jar start.jar cd example1; java -Djetty.port=7574 -DzkHost=localhost:9983 -jar start.jar cd example2; java -Djetty.port=7575 -DzkHost=localhost:9983 -jar start.jar cd example3; java -Djetty.port=7576 -DzkHost=localhost:9983 -jar start.jar cd example4; java -Djetty.port=7577 -DzkHost=localhost:9983 -jar start.jar
After that I invoked: http://localhost:8983/solr/admin/collections?action=CREATE&name=mycollection51&numShards=5&replicationFactor=1 I can see all shards having non-null ranges in clusterstate. On Tue, Oct 15, 2013 at 8:47 PM, Chris <christu...@gmail.com> wrote: > Hi Shalin,. > > Thank you for your quick reply. I appreciate all the help. > > I started the solr cloud servers first...with 5 nodes. > > then i issued a command like below to create the shards - > > > http://localhost:8983/solr/admin/collections?action=CREATE&name=mycollection&numShards=5&replicationFactor=1 > < > http://localhost:8983/solr/admin/collections?action=CREATE&name=mycollection&numShards=3&replicationFactor=4 > > > > Please advice. > > Regards, > Chris > > > On Tue, Oct 15, 2013 at 8:07 PM, Shalin Shekhar Mangar < > shalinman...@gmail.com> wrote: > > > How did you create these shards? Can you tell us how to reproduce the > > issue? > > > > Any shard in a collection with compositeId router should never have null > > ranges. > > > > > > On Tue, Oct 15, 2013 at 7:07 PM, Chris <christu...@gmail.com> wrote: > > > > > Hi, > > > > > > I am using solr 4.4 as cloud. while creating shards i see that the last > > > shard has range of "null". i am not sure if this is a bug. > > > > > > I am stuck with having null value for the range in clusterstate.json > > > (attached below) > > > > > > "shard5":{ "range":null, "state":"active", "replicas":{"core_node1":{ > > > "state":"active", "core":"Web_shard5_replica1", > > > "node_name":"domain-name.com:1981_solr", "base_url":" > > > http://domain-name.com:1981/solr", "leader":"true"}}}}, > > > "router":"compositeId"}, > > > > > > I tried to use zookeeper cli to change this, but it was not able to. I > > > tried to locate this file, but didn't find it anywhere. > > > > > > Can you please let me know how do i change the range from null to > > something > > > meaningful? i have the range that i need, so if i can find the file, > > maybe > > > i can change it manually. > > > > > > My next question is - can we have a catch all for ranges, i mean if > > things > > > don't match any other range then insert in this shard..is this > possible? > > > > > > Kindly advice. > > > Chris > > > > > > > > > > > -- > > Regards, > > Shalin Shekhar Mangar. > > > -- Regards, Shalin Shekhar Mangar.