Thread:
 lock obtain timeout 
 faizal   15 Apr 2005, 05:04 

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: faizal (15 Apr 2005, 05:04) Replies: 0, Views: 40488
Subject: lock obtain timeout
Hi,

Since I still find myself being directed to this article from google, a
quick comment:

The interceptor code will generate lucene lock obtain timeout exceptions
when multiple entities are updated at the same time. This because you
are not allowed to have IndexReader.delete and IndexWriter.add at the
same time  for the same index. 

A workaround is to increase the lucene lock timeout. But I was hoping
someone could provide the example with better synchronization mechanics.
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]