-->
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: MassIndexer sometimes just hangs
PostPosted: Wed Apr 21, 2010 5:47 am 
Pro
Pro

Joined: Wed Nov 05, 2003 7:22 pm
Posts: 211
Hi,

I'm running Hibernate Core 3.5.1 with Hibernate Search 3.2.0.CR1

I've noticed the issue described in http://opensource.atlassian.com/project ... SEARCH-490. It happens sometimes, especially when threads pause for a debugging break and I don't immediately continue them.
But I also notice that sometimes the MassIndexer just doesn't finish and hangs with all the threads still in running state. Nothing seems to be happening or completing. I think that HSEARCH-490 has prevented the threads from completing.
Created an issue for this: http://opensource.atlassian.com/project ... SEARCH-512

I've also noticed an issue when I then kill the JVM, the lock files that are created by the Mass Indexer stay in place and are not automatically cleaned up at initialization, which requires manual intervention. In production this is kind of killing. Lock cleaning during initialization would def be on my wishlist! I've created an issue for this: http://opensource.atlassian.com/project ... SEARCH-511

One final thing of note. The MassIndexer has two purposes:
* Reindex everything
* Do it really fast

I'm most interested in the second aspect. Because I only want to reindex a subset of my data. In my case, my data is only valid between certain dates. I would like to prevent data that is "obsolete" to be reindexed. Would a list of Ids or even better, a Criteria expression, to be included (excluding everything else) for a certain class be something for the roadmap?

Kind regards,

Marc


Top
 Profile  
 
 Post subject: Re: MassIndexer sometimes just hangs
PostPosted: Thu Apr 22, 2010 3:36 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Quote:
I would like to prevent data that is "obsolete" to be reindexed. Would a list of Ids or even better, a Criteria expression, to be included (excluding everything else) for a certain class be something for the roadmap?

right, feel free to post suggestions, comments and or patches to:
http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-499
Keep in mind that when updating a partial index the updates need to perform a delete+insert for each updated document, while when updating all the index can be deleted all at once, having N inserts only. So depending on the ration of valid/obsolete entities it might be faster to reindex all.

Avoid a list of Ids, as it might be too large to handle as a list.

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


Top
 Profile  
 
 Post subject: Re: MassIndexer sometimes just hangs
PostPosted: Mon Nov 08, 2010 12:53 pm 
Newbie

Joined: Wed May 31, 2006 2:34 pm
Posts: 9
Hi Marc,

I had the same problems with hanging MassIndexer. I realized, that I never had problems when setting all threads to 1. I could solve the problem by adjusting the thread-counts of ID-Loader, Lazy-Fetcher and so on to the "right" value. I don't know, what the right value is, but I just incresed the thread count one by one and monitored, how many threads of wich worker were busy to find the values. Sometimes I hit a combination, where it hangs, but after increasing it once more, it worked.

btw: I could speed up the indexing time from 1h45 (without MassIndexer) to 0h20. But now, in production we get problems with this, as the MassIndexer doesn't allow concurrent access to the index. Which means for us a downtime of the production system whenever the index needs to be rebuild, which is hard to accept.

_________________
Timo


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.