Hi.

We have a SolrCloud setup with 20 shards, each with only 1 replica, served
on 8 servers.

After a server went down we are left with 16 shards, which means that some
of the compositeId hash ranges aren't hosted by any cores.  Somehow the
shards/cores didn't come back after the server came up again.  I can see
the server in /live_nodes.

But all is not bad: The data in the collection is volatile with a TTS of 30
minutes, and we have a failover in place that tries a new random
compositeId whenever an "add" operation fails.

My question is: Is it possible to re-create the missing shards or do I have
to delete and create the collection from scratch?

I know which hash ranges are are missing, but the CREATESHARD [1] API call
doesn't support shards with the 'compositeId' router.  And I cannot use
SPLITSHARD [2] since it only divides the original shard's hash.

Best regards,
Henrik


[1]
https://cwiki.apache.org/confluence/display/solr/Collections+API#CollectionsAPI-api8
[2]
https://cwiki.apache.org/confluence/display/solr/Collections+API#CollectionsAPI-api3

Reply via email to