Correcting index corruption

ravendb

(Kevin Ison) #1

I notice in the my logs the following message:

2018-02-09 13:52:19.3761|7|Warn|Raven.Database.Indexing.IndexStorage.Startup|Could not open index QueueAddressIndex. Trying to recover index
System.InvalidOperationException: Map-Reduce index corruption detected.

Can someone direct me to a solution? I haven’t been able to find anything that helps with trying to resolve these types or errors. Or is this something I need to be concerned about?

Thanks


(William Brander) #2

Hi Kevin

The warning is simply there to let you know that the index is corrupt. RavenDB will attempt to recover the index itself. If the error continues to show, you can manually delete the index to force RavenDB to rebuild the index itself.

To delete the index, start ServiceControl in maintenance mode and browse to the indexes screen and simply delete the QueueAddressIndex index. Once deleted, restart ServiceControl in regular mode and RavenDB will rebuild the index instead of trying to repair it.


(Kevin Ison) #3

Thanks for the response! I will keep this in mind. I wasn’t sure how to delete the index.

Thanks again!