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 Vineet Mishra <cl...@gmail.com> on 2014/05/06 12:44:36 UTC

Inconsistent response from Cloud Query

Hi All,

I have setup cloud-4.6.2 with default configuration on single machine with
2 shards and 2 replication through
https://cwiki.apache.org/confluence/display/solr/Getting+Started+with+SolrCloud

Cloud was up and running and I indexed the example data xml to it, it went
fine.
Now when I am querying with *distrib=true* it is giving inconsistent
result, sometimes it gives 4 Result Response and sometimes 8(Actual Number)

Has anyone been through the situation. Looking for positive and quick
response.

Thanks!

Fwd: Inconsistent response from Cloud Query

Posted by Vineet Mishra <cl...@gmail.com>.
Copying.
Community: Looking forward for your response.

---------- Forwarded message ----------
From: Vineet Mishra <cl...@gmail.com>
Date: Mon, May 12, 2014 at 5:57 PM
Subject: Re: Inconsistent response from Cloud Query
To: solr-user@lucene.apache.org


Hi Shawn,

There is no recovery case for me, neither the commit is pending.
The case I am talking about is when I restart the Cloud all over again with
index already flushed to disk.

Thanks!


On Sun, May 11, 2014 at 10:17 PM, Shawn Heisey <so...@elyograg.org> wrote:

> On 5/9/2014 11:42 AM, Cool Techi wrote:
> > We have noticed Solr returns in-consistent results during replica
> recovery and not all replicas are in the same state, so when your query
> goes to a replica which might be recovering or still copying the index then
> the counts may differ.
> > regards,Ayush
>
> SolrCloud should never send requests to a replica that is recovering.
> If that is happening (which I think is unlikely), then it's a bug.
>
> If *you* send a request to a replica that is still recovering, I would
> expect SolrCloud to redirect the request elsewhere unless distrib=false
> is used.  I'm not sure whether that actually happens, though.
>
> Thanks,
> Shawn
>
>

Re: Inconsistent response from Cloud Query

Posted by Vineet Mishra <cl...@gmail.com>.
Hi Shawn,

There is no recovery case for me, neither the commit is pending.
The case I am talking about is when I restart the Cloud all over again with
index already flushed to disk.

Thanks!


On Sun, May 11, 2014 at 10:17 PM, Shawn Heisey <so...@elyograg.org> wrote:

> On 5/9/2014 11:42 AM, Cool Techi wrote:
> > We have noticed Solr returns in-consistent results during replica
> recovery and not all replicas are in the same state, so when your query
> goes to a replica which might be recovering or still copying the index then
> the counts may differ.
> > regards,Ayush
>
> SolrCloud should never send requests to a replica that is recovering.
> If that is happening (which I think is unlikely), then it's a bug.
>
> If *you* send a request to a replica that is still recovering, I would
> expect SolrCloud to redirect the request elsewhere unless distrib=false
> is used.  I'm not sure whether that actually happens, though.
>
> Thanks,
> Shawn
>
>

Re: Inconsistent response from Cloud Query

Posted by Shawn Heisey <so...@elyograg.org>.
On 5/9/2014 11:42 AM, Cool Techi wrote:
> We have noticed Solr returns in-consistent results during replica recovery and not all replicas are in the same state, so when your query goes to a replica which might be recovering or still copying the index then the counts may differ.
> regards,Ayush

SolrCloud should never send requests to a replica that is recovering.
If that is happening (which I think is unlikely), then it's a bug.

If *you* send a request to a replica that is still recovering, I would
expect SolrCloud to redirect the request elsewhere unless distrib=false
is used.  I'm not sure whether that actually happens, though.

Thanks,
Shawn


RE: Inconsistent response from Cloud Query

Posted by Cool Techi <co...@outlook.com>.
We have noticed Solr returns in-consistent results during replica recovery and not all replicas are in the same state, so when your query goes to a replica which might be recovering or still copying the index then the counts may differ.
regards,Ayush

> Date: Tue, 6 May 2014 16:14:36 +0530
> Subject: Inconsistent response from Cloud Query
> From: clearmidoubt@gmail.com
> To: solr-user@lucene.apache.org
> 
> Hi All,
> 
> I have setup cloud-4.6.2 with default configuration on single machine with
> 2 shards and 2 replication through
> https://cwiki.apache.org/confluence/display/solr/Getting+Started+with+SolrCloud
> 
> Cloud was up and running and I indexed the example data xml to it, it went
> fine.
> Now when I am querying with *distrib=true* it is giving inconsistent
> result, sometimes it gives 4 Result Response and sometimes 8(Actual Number)
> 
> Has anyone been through the situation. Looking for positive and quick
> response.
> 
> Thanks!