-->
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.  [ 2 posts ] 
Author Message
 Post subject: How to prevent index corruption
PostPosted: Wed Oct 17, 2012 2:49 pm 
Regular
Regular

Joined: Tue May 17, 2011 1:45 am
Posts: 52
Hi,

I am using vanilla filesystem for directory_provider. The same index is used for indexing as well as querying. Indexing happens every 10 mins depending on new updates. Indexing is by a manual process triggered by a java scheduler

The system has been running on a test environment for more than 2 months and I do not see any index corruption. However would like to know what are the best practices to be followed to ensure that there is no index corruption


Top
 Profile  
 
 Post subject: Re: How to prevent index corruption
PostPosted: Thu Oct 18, 2012 8:34 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hi,
in theory the index should' t corrupt even if you killed the JVM at any time. Of course some updates might be lost, but the design of Lucene's indexes should be robust enough to prevent "corruption".

Generally speaking, there's nothing different than any disk-stored recommendation: pick a safe filesystem, no exotic filesystem tuning flags unless you know what you're doing, make sure your disks don't fail.

In practice corruption is of course possible because of bugs as no software is perfect, but it's very unlikely as in this case we're talking about code which is being actively tested by lots of people, in lots of different use cases and workloads.

Might be worth keeping an eye on the Lucene JIRA, that's where you'll find if anyone opens an issue: https://issues.apache.org/jira/browse/LUCENE ; the only couple of times I've seen a corruption issue being reported, it as however resolved at record speed. So another strategy is to make sure you keep updated.

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