"no servers hosting shard" when querying during shard creation
I'm getting SolrServerExceptions and I'm not sure whether this is by
design or whether this is a concurrency bug of some sort.
Basically I've got a pretty active collection which is being queried all
the time. Periodically, new shards are created (using the Collection
Admin API's CREATESHARD call). Creating the shard takes a certain amount
If a query is launched during the shard creation, I get a
SolrServerException from SolrJ: Error from server at foo: no servers
hosting shard: bar
This strikes me as odd. It's a new shard that's either still being
created or was just created, it's empty, so it shouldn't affect the
query in any way.
I had a quick nose around the code and found HttpShardHandler to be the
one throwing the exception. But it's unclear to me how or where it's
decided which shards are included in the query execution. Is this a bug?
that's not a fix, but would allow the queries to complete. Of course
if you _really_ had a problem the query would complete too....
On Sun, Jan 13, 2019 at 6:28 AM Bram Van Dam <[hidden email]> wrote:
> On 13/01/2019 14:28, Bram Van Dam wrote:
> > If a query is launched during the shard creation, I get a
> > SolrServerException from SolrJ: Error from server at foo: no servers
> > hosting shard: bar
> I should probably add that I'm running 7.6.0.