Wow, That was quick. Thank you very much Mr. Siren. I shall remove the compression node in the solrconfig.xml and let you know how it went.
Thanks, Ravi Kiran Bhaskar On Wed, Sep 5, 2012 at 2:54 AM, Sami Siren <ssi...@gmail.com> wrote: > I opened SOLR-3789. As a workaround you can remove <str > name="compression">internal</str> from the config and it should work. > > -- > Sami Siren > > On Wed, Sep 5, 2012 at 5:58 AM, Ravi Solr <ravis...@gmail.com> wrote: >> Hello, >> I have a very simple setup one master and one slave configured >> as below, but replication keeps failing with stacktrace as shown >> below. Note that 3.6 works fine on the same machines so I am thinking >> that Iam missing something in configuration with regards to solr >> 4.0...can somebody kindly let me know if Iam missing something ? I am >> running SOLR 4.0 on Tomcat-7.0.29 with Java6. FYI I never has any >> problem with SOLR on glassfish, this is the first time Iam using it on >> Tomcat >> >> On Master >> >> <requestHandler name="/replication" class="solr.ReplicationHandler"> >> <lst name="master"> >> <str name="replicateAfter">commit</str> >> <str name="replicateAfter">optimize</str> >> <str name="confFiles">schema.xml,stopwords.txt,synonyms.txt</str> >> <str name="commitReserveDuration">00:00:10</str> >> </lst> >> </requestHandler> >> >> On Slave >> >> <requestHandler name="/replication" class="solr.ReplicationHandler" > >> <lst name="slave"> >> <str >> name="masterUrl">http://testslave:8080/solr/mycore/replication</str> >> >> <str name="pollInterval">00:00:50</str> >> <str name="compression">internal</str> >> <str name="httpConnTimeout">5000</str> >> <str name="httpReadTimeout">10000</str> >> </lst> >> </requestHandler> >> >> >> Error >> >> 22:44:10 WARNING SnapPuller Error in fetching packets >> >> java.util.zip.ZipException: unknown compression method >> at >> java.util.zip.InflaterInputStream.read(InflaterInputStream.java:147) >> at >> org.apache.solr.common.util.FastInputStream.readWrappedStream(FastInputStream.java:79) >> at >> org.apache.solr.common.util.FastInputStream.refill(FastInputStream.java:88) >> at >> org.apache.solr.common.util.FastInputStream.read(FastInputStream.java:124) >> at >> org.apache.solr.common.util.FastInputStream.readFully(FastInputStream.java:149) >> at >> org.apache.solr.common.util.FastInputStream.readFully(FastInputStream.java:144) >> at >> org.apache.solr.handler.SnapPuller$FileFetcher.fetchPackets(SnapPuller.java:1024) >> at >> org.apache.solr.handler.SnapPuller$FileFetcher.fetchFile(SnapPuller.java:985) >> at >> org.apache.solr.handler.SnapPuller.downloadIndexFiles(SnapPuller.java:627) >> at >> org.apache.solr.handler.SnapPuller.fetchLatestIndex(SnapPuller.java:331) >> at >> org.apache.solr.handler.ReplicationHandler.doFetch(ReplicationHandler.java:297) >> at org.apache.solr.handler.SnapPuller$1.run(SnapPuller.java:175) >> 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:180) >> at >> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) >> 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:662) >> >> 22:44:10 SEVERE ReplicationHandler SnapPull failed >> :org.apache.solr.common.SolrException: Unable to download >> _3_Lucene40_0.tip completely. Downloaded 0!=170 at >> org.apache.solr.handler.SnapPuller$FileFetcher.cleanup(SnapPuller.java:1115) >> at >> org.apache.solr.handler.SnapPuller$FileFetcher.fetchFile(SnapPuller.java:999) >> at org.apache.solr.handler.SnapPuller.downloadIndexFiles(SnapPuller.java:627) >> at org.apache.solr.handler.SnapPuller.fetchLatestIndex(SnapPuller.java:331) >> at >> org.apache.solr.handler.ReplicationHandler.doFetch(ReplicationHandler.java:297) >> at org.apache.solr.handler.SnapPuller$1.run(SnapPuller.java:175) 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:180) >> at >> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) >> 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:662)