[opencms-dev] RES: RES: Search index locked (maybe)
Deiverson Silveira
deiverson at solutioncms.com
Thu May 19 23:54:03 CEST 2011
Oh =|
I think this problem in Lucene:
My program crashed and now I get a "Lock obtain timed out." error. Where is
the lock and how can i delete it?
When using FSDirectory, Lock files are kept in the directory specified by
the "org.apache.lucene.lockdir" system property if it is set, or by default
in the directory specified by the "java.io.tmpdir" system property (on Unix
boxes this is usually "/var/tmp" or "/tmp").
If for some strange reason "java.io.tmpdir" is not set, then the directory
path you specified to create your index is used.
Lock files have names that start with "lucene-" followed by an MD5 hash of
the index directory path.
If you are certain that a lock file is not in use, you can delete it
manually. You should also look at the methods
"IndexReader.isLocked<http://lucene.apache.org/java/docs/api/org/apache/lucene/index/IndexReader.html#isLocked(org.apache.lucene.store.Directory)>"
and "IndexReader.unlock<http://lucene.apache.org/java/docs/api/org/apache/lucene/index/IndexReader.html#unlock(org.apache.lucene.store.Directory)>"
if you are interested in writing recovery code that can remove locks
automatically.
Source: http://wiki.apache.org/lucene-java/LuceneFAQ
http://stackoverflow.com/questions/838123/exception-when-updating-lucene-index
http://www.gossamer-threads.com/lists/lucene/java-user/46180
<http://www.gossamer-threads.com/lists/lucene/java-user/46180>
2011/5/19 Jeniffer Bastos de Souza <jeniffer.souza at itlab.com.br>
> The happiness last for a few minutes.
>
>
>
> The main search still not working.
>
>
>
> Testing offline (only me searching) it was ok.
>
>
>
> But when I put it online it crashes again.
>
>
>
> I created another index, another source, field, all. Then, by code, I
> changed to the main search use my buscaPrincipalOnlineTESTE and
> buscaPrincipalOfflineTESTE (both new indexes) and the problem show up again,
> Tomcat with several main search requests and not being able to solve them.
>
>
>
> I published a random file and when I go to see the details in the Queue
> list, all my indexes are updated (when was a news my news indexes were
> updated and so on) less buscaPrincipalOnlineTESTE .
>
> Probably the log "error while updating index... time out" would be shown
> but I didn't wait.
>
>
>
> Any ideas list?
>
> Thank you.
>
>
>
> *De:* opencms-dev-bounces at opencms.org [mailto:
> opencms-dev-bounces at opencms.org] *Em nome de *Deiverson Silveira
> *Enviada em:* quarta-feira, 18 de maio de 2011 15:34
>
> *Para:* The OpenCms mailing list
> *Assunto:* Re: [opencms-dev] RES: Search index locked (maybe)
>
>
>
> I'm glad to hear of the success! :-)
>
>
>
> Kind Regards,
>
>
>
> Deiverson Silveira
>
>
>
>
>
> 2011/5/18 Jeniffer Bastos de Souza <jeniffer.souza at itlab.com.br>
>
> Hi Deiverson.
>
>
>
> I'm not using a custom index.
>
>
>
> It's just a simple index implemented by CmsVfsIndexer.
>
>
>
> That another suggestion that you gave, out of the email list, I assume as
> my correction.
>
>
>
> I created another index and rebuild it.
>
> Maybe with the crash of database server some tables/registers could be
> corrupted. So the reference for this indexes could be damage or lost. I
> can't be sure because de database is administrated by other team and we
> don't talk too much, unfortunately.
>
>
>
> Thanks for helping me!
>
>
>
> -- **
>
> *www.solutioncms.com*
>
> *The Brazilian *
>
> *Official Provider OpenCms*
>
>
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>
--
*
www.solutioncms.com
The Brazilian
Official Provider OpenCms
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20110519/928b9760/attachment.htm>
More information about the opencms-dev
mailing list