lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jérôme Etévé <>
Subject Lock problems: Lock obtain timed out
Date Mon, 02 Nov 2009 11:13:22 GMT

  I've got a few machines who post documents concurrently to a solr
instance. They do not issue the commit themselves, instead, I've got
autocommit set up at solr server side:
      <maxDocs>50000</maxDocs> <!--  commit at least every 50000 docs -->
      <maxTime>60000</maxTime> <!-- Stays max 60s without commit -->

This usually works fine, but sometime the server goes in a deadlock
state . Here's the errors I get from the log (these go on forever
until I delete the index and restart all from zero):

02-Nov-2009 10:35:27 org.apache.solr.update.SolrIndexWriter finalize
SEVERE: SolrIndexWriter was not closed prior to finalize(), indicates
[ multiple messages like this ]
02-Nov-2009 10:35:27 org.apache.solr.common.SolrException log
SEVERE: Lock obtain
timed out: NativeFSLock@/home/solrdata/jobs/index/lucene-703db99881e56205cb910a2e5fd816d3-write.lock
        at org.apache.lucene.index.IndexWriter.init(
        at org.apache.lucene.index.IndexWriter.<init>(
        at org.apache.solr.update.SolrIndexWriter.<init>(
        at org.apache.solr.update.UpdateHandler.createMainIndexWriter(
        at org.apache.solr.update.DirectUpdateHandler2.openWriter(
        at org.apache.solr.update.DirectUpdateHandler2.addDoc(
        at org.apache.solr.update.processor.RunUpdateProcessor.processAdd(
        at org.apache.solr.handler.XMLLoader.processUpdate(
        at org.apache.solr.handler.XMLLoader.load(
        at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(
        at org.apache.solr.handler.RequestHandlerBase.handleRequest(
        at org.apache.solr.core.SolrCore.execute(

I'm wondering what could be the reason for this (if a commit takes
mire than 60 seconds for instance?), and if I should use better
locking or autocommittting options?

Here's the locking conf I've got at the moment:

I'm using solr trunk from 12 oct 2009 within tomcat.

Thanks for any help.


Jerome Eteve.

View raw message