[ 
https://issues.apache.org/jira/browse/SOLR-2326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12986402#action_12986402
 ] 

Eric Pugh commented on SOLR-2326:
---------------------------------

So I did discover one odd thing.   If I don't have a /update update 
requesthandler listed in the solrconfig.xml, then the commitPoint is ALWAYS 
null, it's almost like having that in the stack causes the commitPoint to be 
done.

My other datapoint, that I think, but haven't verified is that if you don't 
have the replicate on startup set, then it *seems*, but I am not positive, to 
give that result.

One question I have is why is there that race condition?  I mean, if the 
command=details works, then shouldn't indexversion work the same, or raise  an 
error?  versus returning a rather unuseful 0?  Maybe just logging "no 
commitPoint found" would help.



> Replication command indexversion fails to return index version
> --------------------------------------------------------------
>
>                 Key: SOLR-2326
>                 URL: https://issues.apache.org/jira/browse/SOLR-2326
>             Project: Solr
>          Issue Type: Bug
>          Components: replication (java)
>         Environment: Branch 3x latest
>            Reporter: Eric Pugh
>            Assignee: Mark Miller
>             Fix For: 3.1
>
>
> To test this, I took the /example/multicore/core0 solrconfig and added a 
> simple replication handler:
>   <requestHandler name="/replication" class="solr.ReplicationHandler" >
>       <lst name="master">
>         <str name="replicateAfter">commit</str>
>         <str name="replicateAfter">startup</str>
>         <str name="confFiles">schema.xml</str>
>       </lst>
>   </requestHandler>
> When I query the handler for details I get back the indexVersion that I 
> expect: 
> http://localhost:8983/solr/core0/replication?command=details&wt=json&indent=true
> But when I ask for just the indexVersion I get back a 0, which prevent the 
> slaves from pulling updates: 
> http://localhost:8983/solr/core0/replication?command=indexversion&wt=json&indent=true

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to