1
Vote

Lucene.Net Indexing Operation Stopped Working

description

I use Lucene.Net to perform search functions for my website. Here is the code I use to begin the process to populate the index:

CloudStorageAccount cloudStorageAccount = CloudStorageAccount.Parse(CloudConfigurationManager.GetSetting("blobStorage"));
AzureDirectory azureDirectory = new AzureDirectory(cloudStorageAccount, "itnsearchpilot");
Analyzer analyzer = new StopAnalyzer(Lucene.Net.Util.Version.LUCENE_30);
IndexWriter.MaxFieldLength mfl = IndexWriter.MaxFieldLength.UNLIMITED;
IndexWriter writer = new IndexWriter(azureDirectory, analyzer, true, mfl);

I've had this operation in place since March 10th and it has run everyday fine. On July 28th it stopped working and I cannot figure out why. I am getting this error message on the last line of code above when I try to debug:

An exception of type 'Lucene.Net.Store.LockObtainFailedException' occurred in Lucene.Net.dll but was not handled in user code

Additional information: Lock obtain timed out: AzureLock@write.lock. I looked at documentation here and for Lucene and saw that I should try deleting the write.lock file (note that there are no ways to add documents to the index outside of this single process). I deleted the write.lock file but still get this error message. I cannot get the index to re-create itself to add new records.

Does anyone have any suggestions?

I have changed nothing in my code since March 10.

comments