Hopefully the explanation here will shed some light on this:
https://issues.apache.org/jira/browse/SOLR-3912

-Yonik
http://lucidworks.com


On Fri, Jan 18, 2013 at 2:59 PM, Mishkin, Ernest
<ernest_mish...@mcgraw-hill.com> wrote:
> Hello,
>
> I'm trying to reconcile my understanding of how distributed queries are 
> handled by SolrCloud with what I see in the server (tomcat running solr) logs.
>
> The setup: Solr 4.0 GA, single collection, one shard, two nodes (master and 
> replica), standalone zookeeper ensemble.
>
> Client uses SolrJ CloudSolrServer to issue queries.
>
> Looking at one of the solr instance's logs (same pattern for both master and 
> replica) while repeatedly running a query, I sometimes see just one line:
> INFO  [org.apache.solr.core.SolrCore       ] webapp=/solr path=/select 
> params={start=0&q=<my_query>&wt=javabin&rows=10&version=2} hits=2 status=0 
> QTime=28
>
> And sometimes I see the following 3 lines (for a single client request):
> INFO  [org.apache.solr.core.SolrCore       ] webapp=/solr path=/select 
> params={fl=user_id,score&shard.url=<master_url>|<replica_url>/&NOW=1358538200298&start=0&q=<my_query>&distrib=false&isShard=true&wt=javabin&fsv=true&rows=10&version=2}
>  hits=2 status=0 QTime=14
> INFO  [org.apache.solr.core.SolrCore       ] webapp=/solr path=/select 
> params={shard.url=<master_url>|<replica_url>/&NOW=1358538200298&start=0&q=<my_query>&ids=229,118671&distrib=false&isShard=true&wt=javabin&rows=10&version=2}
>  status=0 QTime=9
> INFO  [org.apache.solr.core.SolrCore       ] webapp=/solr path=/select 
> params={start=0&q=<my_query>&wt=javabin&rows=10&version=2} hits=2 status=0 
> QTime=107
>
> I thought that the client simply picks a node (master or replica in this 
> case) and that node will fully service the request given that it's a single 
> shard setup. But apparently I'm missing something - please help me understand 
> what.
>
> Thanks,
> Ernest
>
>
>
> ________________________________
> The information contained in this message is intended only for the recipient, 
> and may be a confidential attorney-client communication or may otherwise be 
> privileged and confidential and protected from disclosure. If the reader of 
> this message is not the intended recipient, or an employee or agent 
> responsible for delivering this message to the intended recipient, please be 
> aware that any dissemination or copying of this communication is strictly 
> prohibited. If you have received this communication in error, please 
> immediately notify us by replying to the message and deleting it from your 
> computer. The McGraw-Hill Companies, Inc. reserves the right, subject to 
> applicable local law, to monitor, review and process the content of any 
> electronic message or information sent to or from McGraw-Hill e-mail 
> addresses without informing the sender or recipient of the message. By 
> sending electronic message or information to McGraw-Hill e-mail addresses 
> you, as the sender, are consenting to McGraw-Hill processing any of your 
> personal data therein.

Reply via email to