[ https://issues.apache.org/jira/browse/SOLR-1769?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12842170#action_12842170 ]
Ravi Gidwani commented on SOLR-1769: ------------------------------------ Hi Noble: Thanks for your comments. Here is more information: 1) I checked the solrconfig.xml . I am using the solr 1.4 with application specific changes. I am attaching the solrconfig.xml for your reference. 2) All our solr servers (1 master, 2 slaves) are deployed on EC2 instances. They are all 64 bit instances. 3) Running with JDK 1.6 on Jetty 6.1.5 Here is the entire exception: 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.SnapPuller$1.run(SnapPuller.java:159) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.RuntimeException: java.io.IOException: read past EOF at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:1068) at org.apache.solr.update.DirectUpdateHandler2.commit(DirectUpdateHandler2.java:418) at org.apache.solr.handler.SnapPuller.doCommit(SnapPuller.java:467) at org.apache.solr.handler.SnapPuller.fetchLatestIndex(SnapPuller.java:319) ... 11 more Caused by: java.io.IOException: read past EOF at org.apache.lucene.store.BufferedIndexInput.refill(BufferedIndexInput.java:151) at org.apache.lucene.store.BufferedIndexInput.readByte(BufferedIndexInput.java:38) at org.apache.lucene.store.IndexInput.readInt(IndexInput.java:70) at org.apache.lucene.index.SegmentTermEnum.<init>(SegmentTermEnum.java:50) at org.apache.lucene.index.TermInfosReader.<init>(TermInfosReader.java:71) at org.apache.lucene.index.SegmentReader$CoreReaders.<init>(SegmentReader.java:119) at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:638) at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:599) at org.apache.lucene.index.DirectoryReader.<init>(DirectoryReader.java:228) at org.apache.lucene.index.ReadOnlyDirectoryReader.<init>(ReadOnlyDirectoryReader.java:32) at org.apache.lucene.index.DirectoryReader.doReopen(DirectoryReader.java:437) at org.apache.lucene.index.DirectoryReader.access$000(DirectoryReader.java:43) at org.apache.lucene.index.DirectoryReader$2.doBody(DirectoryReader.java:429) at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:704) at org.apache.lucene.index.DirectoryReader.doReopen(DirectoryReader.java:425) at org.apache.lucene.index.DirectoryReader.reopen(DirectoryReader.java:352) at org.apache.solr.search.SolrIndexReader.reopen(SolrIndexReader.java:413) at org.apache.solr.search.SolrIndexReader.reopen(SolrIndexReader.java:424) at org.apache.solr.search.SolrIndexReader.reopen(SolrIndexReader.java:35) at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:1049) ... 14 more Mar 4, 2010 11:51:00 AM org.apache.solr.handler.SnapPuller downloadIndexFiles INFO: Skipping download for /mnt/solr/data/index/_2o.fdx Mar 4, 2010 11:51:00 AM org.apache.solr.handler.SnapPuller downloadIndexFiles INFO: Skipping download for /mnt/solr/data/index/_2n.tvf Mar 4, 2010 11:51:00 AM org.apache.solr.handler.SnapPuller fetchLatestIndex INFO: Total time taken for download : 0 secs Mar 4, 2010 11:51:00 AM 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.SnapPuller$1.run(SnapPuller.java:159) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: java.io.FileNotFoundException: File does not exist /mnt/solr/./data/index.20100304115100/_2o.tis at org.apache.solr.common.util.FileUtils.sync(FileUtils.java:55) at org.apache.solr.handler.SnapPuller$FileFetcher$1.run(SnapPuller.java:911) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) ... 3 more > 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.