-->
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.  [ 4 posts ] 
Author Message
 Post subject: hibernate seems stuck after a lock error from lucenne
PostPosted: Fri May 13, 2011 8:52 am 
Beginner
Beginner

Joined: Mon Apr 04, 2011 12:08 pm
Posts: 32
when I mass index with hibernate search and it crashed because a lock problem, then after that it seems everything is stuck.
Any idea where this could come from ?

could it be a transaction problem ?

I start the MassIndexer with .start() method wich is threaded I think, from inside a dao annotated with @Transaction. The method is ran from inside an action, but can also be programmable through quartz.
I am not sure what happens transaction wise.


Top
 Profile  
 
 Post subject: Re: hibernate seems stuck after a lock error from lucenne
PostPosted: Fri May 13, 2011 10:38 am 
Beginner
Beginner

Joined: Mon Apr 11, 2011 7:56 am
Posts: 38
I guess your connection pool is full, see HSEARCH-598 for more info.


Top
 Profile  
 
 Post subject: Re: hibernate seems stuck after a lock error from lucenne
PostPosted: Fri May 13, 2011 11:44 am 
Beginner
Beginner

Joined: Mon Apr 04, 2011 12:08 pm
Posts: 32
thanks


Top
 Profile  
 
 Post subject: Re: hibernate seems stuck after a lock error from lucenne
PostPosted: Sat May 14, 2011 6:36 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
also, the MassIndexer should not be run when the index is being changed by interactive usage (standard events): if you try, the locks will prevent you to corrupt the index but it would basically block other operations.
The intention of the MassIndexer was to quickly upgrade indexes when the application is upgraded (schema / index mapping is changed), or as a tool for data recovery (index is lost/corrupted). I'm going to rework the design a bit to prevent the connection pools problems as in HSEARCH-598 and to make sure you can also run it "freely", i.e. even when the application is running, but this is coming in next version.

_________________
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.  [ 4 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.