Report the OpenSearch version correctly on Bitbucket when running with Compatibility mode on the AWS OpenSearch option.

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Unresolved
    • None
    • Component/s: Search - Code Search
    • None
    • 0
    • 3

      The Bitbucket Data Center does not detect that the application is connected to AWS OpenSearch when AWS OpenSearch is configured to run in compatibility mode. Enable compatibility mode, which reports itself as Elasticsearch 7.10.

      This can cause versions of Bitbucket that support OpenSearch but do not support Elasticsearch to be reported as unsupported, even when using AWS OpenSearch. To avoid this, make the Search Server check smarter by accurately determining the OpenSearch version when running on AWS OpenSearch with compatibility mode. Enable compatibility mode

      Fix

      • Disable compatibility mode by unchecking the Enable compatibility mode option in the Opensearch instance config.
      • To disable compatibility mode on existing OpenSearch domains, you should use the _cluster/settings API operation as outlined in their Developer Guide. A sample command is specified below.
        curl -X PUT <OpenSearch-URL>/_cluster/settings  -u <Master-Username> -H 'Content-Type: application/json' -d '{
          "persistent" : {
            "compatibility.override_main_response_version" : false
          }
        }'

              Assignee:
              Unassigned
              Reporter:
              Danny Samuel
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: