lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörgen Rydenius (JIRA) <j...@apache.org>
Subject [jira] Commented: (SOLR-1769) Solr 1.4 Replication - Repeater throwing NullPointerException
Date Wed, 24 Mar 2010 09:41:27 GMT

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

Jörgen Rydenius commented on SOLR-1769:
---------------------------------------

I also have problems with the solr master after restarting with a non-empty data dir. NullPointerException
on line ReplicationHandler$4.postCommit(ReplicationHandler.java:922), just like the trace
above, but no SnapPuller in my stack:

{noformat}
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.update.processor.RunUpdateProcessor.processCommit(RunUpdateProcessorFactory.java:85)
    at org.apache.solr.handler.RequestHandlerUtils.handleCommit(RequestHandlerUtils.java:107)
    at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:48)
    at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
    at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316)
    at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338)
    at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
    at java.lang.Thread.run(Thread.java:619)
{noformat}

Restarting after clearing the solr data dir works fine. I uncommented the following lines
in solrconfig.xml on my master:

{noformat}
<!--Master config-->
<requestHandler name="/replication" class="solr.ReplicationHandler" >
    <lst name="master">
        <str name="replicateAfter">commit</str>
         <str name="confFiles">schema.xml,stopwords.txt</str>
    </lst>
</requestHandler>
{noformat}

> 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: SOLR-1769, solrconfig.xml, 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.


Mime
View raw message