Skip to content

Removed Corax search engine settings are restored on existing databases at every start-up #6094

Closed

Description

@ramonsmits

Describe the bug

At each start-up, including a start in maintenance mode, ServiceControl adds Indexing.Auto.SearchEngineType and Indexing.Static.SearchEngineType with value Corax to every database that has no such settings. The intent was a one-time pin for databases created before 6.20. The code cannot tell "never pinned" from "the operator removed the setting", so it also undoes an operator's choice.

RavenDB Studio removes a database setting whose value equals the server default. An operator who sets both keys to Lucene on a server whose default is Lucene therefore deletes the keys, and ServiceControl restores Corax at the next start. The "Migrating the whole database" procedure in the documentation produces exactly this.

Steps to reproduce

  1. Create an error or audit database with ServiceControl 6.19 or earlier.
  2. In RavenDB Studio, set Indexing.Auto.SearchEngineType and Indexing.Static.SearchEngineType to Lucene on the database. The server default is Lucene, so Studio removes both settings.
  3. Start ServiceControl.
  4. Both settings are back with value Corax.

Relevant log output

No response

Additional Information

Backported to

Activity

  1. added this to the 6.22.2 milestone on Nov 5, 2026
  2. ramonsmits commented on Nov 5, 2026

    @ramonsmits
    MemberAuthor

    Will be shipped with ServiceControl 6.22.2.

  3. removed this from the 6.22.2 milestone on Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions