-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: unnoticed index update failure ico write lock wait timeout
PostPosted: Wed Nov 25, 2009 12:07 pm 
Newbie

Joined: Wed Nov 25, 2009 11:28 am
Posts: 1
hibernate-search-3.1.1.GA , lucene2.4.1

Using synchronous execution with FSMasterDirectoryProvider, we miss from time to time index updates, due to write locks (another process is doing infrequent batch inserts).
I see that the index should get updated via transaction synchronization (aftercompletion). However, if the write lock acquisition fails, the resulting searchexception goes unnoticed by our application.
It would be very helpfull if there is some way we can be notified about such exception.


Top
 Profile  
 
 Post subject: Re: unnoticed index update failure ico write lock wait timeout
PostPosted: Thu Nov 26, 2009 7:18 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
right good point.
The locking was designed for just two scenarios:
1) single application: no locking problems
2) cluster of 2 JVMs on same machine sharing a directory (some people like this setup): no application owns the lock for a long time period.

Still in your scenario, or even occasionally in case 2 as Lucene doesn't guarantee fairness (just polls), this is an issue.

As a workaround until this is fixed (patches are always welcome), couldn't you share the IndexWriter? you would need to join the code of the other project in same JVM.
I'll open an issue linked to http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-382

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
 Post subject: Re: unnoticed index update failure ico write lock wait timeout
PostPosted: Thu Nov 26, 2009 7:24 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Here is the specific issue: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-421

While I agree this should be solved, sharing the IndexWriter is an optimal solution in terms of performance.

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.