The search StartupChecksJob may fail to create indexes for the first time

XMLWordPrintable

    • Severity 3 - Minor

      Issue Summary

      When starting a fresh install of Bitbucket DC up for the first time, the search StartupChecksJob may fail to create indexes due to a rare race condition caused by asynchronous search indexing queue events attempting to index documents prior to the job being ready.

      Steps to Reproduce

      Start up a fresh installation of Bitbucket DC that's been configured to point to an external OpenSearch server.

      Expected Results

      Bitbucket should start up with all the expected indexes created succcessfully.

      Actual Results

      Some indexes may fail to be created with the following error.

      2025-10-22 08:03:49,226 ERROR [Caesium-1-2]  c.a.b.i.s.i.IndexingSynchronizationService Failed to create indexes: ''[resource_already_exists_exception]''
      

      The failure causes the job to exit early and fail to write create remaining indexes causing other search features to not function properly

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

            Assignee:
            Josh Aguilar
            Reporter:
            Josh Aguilar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: