-->
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: Unable to purge all exception
PostPosted: Thu Oct 27, 2011 10:37 am 
Newbie

Joined: Tue Jul 26, 2011 6:46 pm
Posts: 11
Hi,

I recently integrated search in hibernate project. I am having some issue.

I am calling method:
Code:
fullTextSession.createIndexer().startAndWait();


Earlier it worked fine, but once it gave an exception for purging issue- "Unable to purge all from Lucene index: foo.bar.User". It keeps repeating this exception for different entities. After that I tried many things but it does not seem to work. I tried deleting the index folder and run the indexer again but didnt work. I tried setting purging to false to avoid the exception as per the code below (along with it added some optimization that would help solve the issue as per one website.):

Code:
fullTextSession.createIndexer()
               .purgeAllOnStart(false)
               .optimizeAfterPurge(true)
               .optimizeOnFinish(true)
               .batchSizeToLoadObjects(30)
               .threadsForSubsequentFetching(8)
               .threadsToLoadObjects(4)
               .threadsForIndexWriter(3)
               .cacheMode(CacheMode.NORMAL)
               .startAndWait();


But it still gives the same exception. My environment is Linux. The search jar versions are:

hibernate3.jar
hibernate-search-3.4.0.Final.jar
hibernate-jpa-2.0-api-1.0.0.Final.jar
lucene-core-3.1.0.jar.

Could you please help me understand how to resolve this issue?


Top
 Profile  
 
 Post subject: Re: Unable to purge all exception
PostPosted: Fri Oct 28, 2011 4:16 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Hi, this sounds very much like - viewtopic.php?f=9&t=1013098
Can you create a full test case so that we can reproduce the problem?


Top
 Profile  
 
 Post subject: Re: Unable to purge all exception
PostPosted: Thu Nov 03, 2011 10:30 am 
Newbie

Joined: Tue Jul 26, 2011 6:46 pm
Posts: 11
The issue is this is not surely reproducible case. Yesterday when I tried writing a test case for it to post it here and ran it, it ran perfectly. Deleted all the indexes and recreated them. Now the entire app is working fine!

I am lucky this time. But still living in fear when it might return.


Top
 Profile  
 
 Post subject: Re: Unable to purge all exception
PostPosted: Thu Nov 03, 2011 12:37 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hi,
it looks like normal usage of indexing was attempted while the MassIndexer was running. your application should prevent that, for example by showing a "in maintenance" webpage while reindexing is happening.

Hibernate Search 4.x can use the MassIndexer while normal activity happens.

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