You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Ravi Gidwani (JIRA)" <ji...@apache.org> on 2010/03/04 01:02:27 UTC

[jira] Commented: (SOLR-1769) Solr 1.4 Replication - Repeater throwing NullPointerException

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

Ravi Gidwani commented on SOLR-1769:
------------------------------------

Hi Noble:
               I am seeing a similar/same exception with following default settings:

<requestHandler name="/replication" class="solr.ReplicationHandler" >
    <lst name="master">
      <str name="replicateAfter">commit</str>
      <str name="replicateAfter">startup</str>
      <str name="confFiles">schema.xml,stopwords.txt</str>
    </lst>
    <lst name="slave">
      <str name="masterUrl">http://<master_ip>/solr/replication</str>
      <str name="pollInterval">00:00:60</str>
    </lst>
</requestHandler>

My setup:
Solr 1.4 , 
3 nodes
1 master, 2 slaves

I see these exceptions on the slaves eerytime a commit happens on the master. After this it looks like the index is out of sync on the salves. After sometime the salves again sync with master and this the sync is successful. 

Is there any known issues that I should look into  ? Is there any work around for this bug ?    Are there any settings that I can try out ?


> Solr 1.4 Replication - Repeater throwing NullPointerException
> -------------------------------------------------------------
>
>                 Key: SOLR-1769
>                 URL: https://issues.apache.org/jira/browse/SOLR-1769
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Deepak
>            Assignee: Noble Paul
>            Priority: Critical
>         Attachments: solrconfig.xml, solrconfigSolr1.4.xml
>
>
> Hi
> I am trying to test Solr 1.4 Java replication. It works fine with this configuration on slave and data is sync from master with out any issue
> <requestHandler name="/replication" class="solr.ReplicationHandler" >
>     <lst name="slave">
>                 <str name="masterUrl">http://IP:PORT/SolrSmartPriceSS/replication</str>
>                 <str name="compression">internal</str>        
>                 <str name="httpConnTimeout">5000</str>
>                 <str name="httpReadTimeout">10000</str>        
>      </lst>
> </requestHandler>
> We need to setup repeater on this slave. We have this configuration on slave. With this configuration, it's throwing a null pointer exception. Please see error log
> <requestHandler name="/replication" class="solr.ReplicationHandler" >
>  <lst name="master">
>         <str name="replicateAfter">commit</str>       
>         <str name="confFiles">schema.xml</str>      
>     </lst>
>     <lst name="slave">
>                 <str name="masterUrl">http://IP:PORT/SolrSmartPriceSS/replication</str>
>                 <str name="compression">internal</str>        
>                 <str name="httpConnTimeout">5000</str>
>                 <str name="httpReadTimeout">10000</str>        
>      </lst>
> </requestHandler>
> Error log
> INFO: start commit(optimize=false,waitFlush=true,waitSearcher=true,expungeDeletes=false)
> Feb 9, 2010 10:27:55 PM org.apache.solr.handler.ReplicationHandler doFetch
> SEVERE: SnapPull failed
> org.apache.solr.common.SolrException: Index fetch failed :
>         at org.apache.solr.handler.SnapPuller.fetchLatestIndex(SnapPuller.java:329)
>         at org.apache.solr.handler.ReplicationHandler.doFetch(ReplicationHandler.java:264)
>         at org.apache.solr.handler.ReplicationHandler$1.run(ReplicationHandler.java:146)
> Caused by: java.lang.NullPointerException
>         at org.apache.solr.handler.ReplicationHandler$4.postCommit(ReplicationHandler.java:922)
>         at org.apache.solr.update.UpdateHandler.callPostCommitCallbacks(UpdateHandler.java:78)
>         at org.apache.solr.update.DirectUpdateHandler2.commit(DirectUpdateHandler2.java:411)
>         at org.apache.solr.handler.SnapPuller.doCommit(SnapPuller.java:467)
>         at org.apache.solr.handler.SnapPuller.fetchLatestIndex(SnapPuller.java:319)
> Please let us know how can we resolve this issue
> Regards
> Deepak
>    

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