I am using the example solrconfig.xml with only a few changes.  Mainly the 
replication section for the master has been changed.  I am not using any 
plugins that I am aware of.  Here is my replication section:

 

<requestHandler name="/replication" class="solr.ReplicationHandler" >
    <lst name="master">
        <str name="replicateAfter">startup</str>
        <str name="replicateAfter">optimize</str>
    </lst>
</requestHandler>

 

If this is valid, then I will open a jira issue.

 

Thanks,

Joe
 
> Date: Fri, 15 Jan 2010 19:06:15 -0500
> Subject: Re: OverlappingFileLockException when using <str 
> name="replicateAfter">startup</str>
> From: yo...@lucidimagination.com
> To: solr-user@lucene.apache.org
> 
> Interesting... this should be impossible.
> Unless there is a bug in Lucene's NativeFSLock (and it doesn't look
> like it), the only way I see that this could happen is if there were
> multiple instances of that class loaded in different classloaders.
> Are you using any kind of plugins?
> 
> Could you open a JIRA issue for this?
> 
> -Yonik
> http://www.lucidimagination.com
> 
> 
> 
> On Fri, Jan 15, 2010 at 5:50 PM, Joe Kessel <isjust...@hotmail.com> wrote:
> >
> > I have an instance of Solr that won't start since I have added the 
> > replication <str name="replicateAfter">startup</str>.  I am using Solr 1.4 
> > and only see this with my index that contains 200k documents with a total 
> > size of 400MB.  Removing the replicate after startup and the instance 
> > starts without error.  We found that we needed replicate after startup as 
> > there was no version information on the master after restarting the 
> > instance.  Is there something special that needs to be done when using 
> > replicate after startup?  Or is this a bug?
> >
> >
> >
> > below is the solr portion of the stacktrace.
> >
> >
> >
> > Thanks,
> >
> > Joe
> >
> >
> >
> > INFO: QuerySenderListener sending requests to searc...@5a425eb9 main
> > Jan 15, 2010 5:29:46 PM org.apache.solr.common.SolrException log
> > SEVERE: java.nio.channels.OverlappingFileLockException
> >  at 
> > sun.nio.ch.FileChannelImpl$SharedFileLockTable.checkList(FileChannelImpl.java:1170)
> >  at 
> > sun.nio.ch.FileChannelImpl$SharedFileLockTable.add(FileChannelImpl.java:1072)
> >  at sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:878)
> >  at java.nio.channels.FileChannel.tryLock(FileChannel.java:962)
> >  at 
> > org.apache.lucene.store.NativeFSLock.obtain(NativeFSLockFactory.java:233)
> >  at org.apache.lucene.store.Lock.obtain(Lock.java:73)
> >  at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:1545)
> >  at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:1402)
> >  at org.apache.solr.update.SolrIndexWriter.<init>(SolrIndexWriter.java:190)
> >  at 
> > org.apache.solr.update.UpdateHandler.createMainIndexWriter(UpdateHandler.java:98)
> >  at 
> > org.apache.solr.update.DirectUpdateHandler2.openWriter(DirectUpdateHandler2.java:173)
> >  at 
> > org.apache.solr.update.DirectUpdateHandler2.forceOpenWriter(DirectUpdateHandler2.java:376)
> >  at 
> > org.apache.solr.handler.ReplicationHandler.inform(ReplicationHandler.java:845)
> >  at 
> > org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:486)
> >  at org.apache.solr.core.SolrCore.<init>(SolrCore.java:588)
> >  at org.apache.solr.core.CoreContainer.create(CoreContainer.java:428)
> >  at org.apache.solr.core.CoreContainer.load(CoreContainer.java:278)
> >  at 
> > org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:117)
> >  at 
> > org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:83)
> >  at 
> > org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
> >
> > _________________________________________________________________
> > Hotmail: Powerful Free email with security by Microsoft.
> > http://clk.atdmt.com/GBL/go/196390710/direct/01/
                                          
_________________________________________________________________
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
http://clk.atdmt.com/GBL/go/196390709/direct/01/

Reply via email to