Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-18977

Missing error logs when mapping is invalid in search server

    XMLWordPrintable

Details

    Description

      Issue Summary

      When there is an issue with one or more index mapping in the search server, it logs the following message but doesn't log the corresponding fields/mapping where the error is present -

      IndexingSynchronizationService Mapping in the search server is present but not compatible with this version of indexing. Unable to continue, operator intervention is required.
      

      This behaviour is not consistent and sometimes the expected error message is logged.

      This is reproducible on Data Center: yes

      Steps to Reproduce

      Expected Results

      Following are logged in the logs:

      2022-05-09 18:00:44,986 ERROR [Caesium-1-1]  c.a.b.i.s.i.IndexingSynchronizationService The mapping for type 'bitbucke
      t-search/file' in the search server is invalid. Errors: [Field 'archived' is missing]
      2022-05-09 18:00:44,986 ERROR [Caesium-1-1]  c.a.b.i.s.i.IndexingSynchronizationService The mapping for type 'bitbucke
      t-index-state/indexstate' in the search server is invalid. Errors: [Field 'archived' is missing]
      2022-05-09 18:00:44,986 ERROR [Caesium-1-1]  c.a.b.i.s.i.IndexingSynchronizationService The mapping for type 'bitbucke
      t-repository/repository' in the search server is invalid. Errors: [Field 'archived' is missing]
      2022-05-09 18:00:44,986 ERROR [Caesium-1-1]  c.a.b.i.s.i.IndexingSynchronizationService Mapping in the search server i
      s present but not compatible with this version of indexing. Unable to continue, operator intervention is required.
      

      Actual Results

      2022-05-09 18:00:44,986 ERROR [Caesium-1-1]  c.a.b.i.s.i.IndexingSynchronizationService Mapping in the search server i
      s present but not compatible with this version of indexing. Unable to continue, operator intervention is required.
      

      Workaround

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

      Attachments

        Issue Links

          Activity

            People

              mgoyal2@atlassian.com Manish
              mgoyal2@atlassian.com Manish
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: