Lucene Index got corrupted on Sitecore 7.5

I have recently encountered a very bizarre issue with my application pool got restarted every 15 minutes on my Content Delivery instances…. I have started to see this error, just after one deployment….

I was running the site on Sitecore 7.5 and I do use Lucene indexes…

As often happen looking into the Application log through the event viewer I found the following error:

Application: w3wp.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: Lucene.Net.Index.MergePolicy+MergeException
Stack:
   at Lucene.Net.Index.ConcurrentMergeScheduler.HandleMergeException(System.Exception)
   at Lucene.Net.Index.ConcurrentMergeScheduler+MergeThread.Run()
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Threading.ThreadHelper.ThreadStart()
My first suspicious was some content author publishing when I was deploying could create some lock/race condition within the index folder?!
I tried to look into the index unsuccessfully with the index viewer and the only solution that I found, also due to the time constraint and do to the fact that site was going down every 15 minutes, it was to delete the physical folder containing the indexes, rebuild my index on the Content Authoring instance and copying the file of the index physically in the index folder…
Once I have done this operation everything run smoothly….
my take away if you are using Lucene, be always ready to re-delete and uplaod your index folder and mainly be sure that your site does not rely completely on the indexes….
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s