You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Migrated Lucene indexes are reset to Corax at start-up when the index is not locked #5948
ServiceControl 6.20.0 and 6.21.0 recommend the migration of RavenDB indexes from Corax to Lucene. The documentation said that the migrated index does not need a lock from version 6.20.0. That is not correct.
At each start-up, ServiceControl deploys its index definitions. These definitions have no search engine. RavenDB sees a different definition and builds a side-by-side ReplacementOf/<index> with the database default. For databases created before 6.20, the default is Corax. The migrated index is reset to Corax and rebuilt. On a large database, the rebuild can take days.
A customer unlocked a migrated MessagesViewIndexWithFullTextSearch on an audit instance and the index was reset to Corax.
Steps to reproduce
Create an error or audit database with ServiceControl 6.19 or earlier. The database default is Corax.
In RavenDB Studio, change the search engine of an index to Lucene on the Configuration tab. Wait for the swap. Do not lock the index.
Start ServiceControl 6.20.0 or 6.21.0.
The index is rebuilt as ReplacementOf/<index> with Corax and swapped in. The Lucene configuration is lost.
Relevant log output
Warn|ServiceControl.RavenDB.StartupChecks|The following RavenDB index(es) use the Corax search engine: audit/FailedAuditImportIndex, audit/ReplacementOf/MessagesViewIndexWithFullTextSearch, audit/SagaDetailsIndex. ...
Activity
ramonsmits commentedon Oct 6, 2026
Is fixed in 6.21.1