Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove distribution from main response in compatibility mode #898

Merged
merged 1 commit into from
Jul 1, 2021

Conversation

mch2
Copy link
Member

@mch2 mch2 commented Jun 29, 2021

This Change removes version.distribution when the version.number is
overridden with the cluster setting compatibility.override_main_response_version.

Signed-off-by: Marc Handalian [email protected]

Description

Removes the distribution property when in compatibility mode with 7.10.2.

curl without setting:

 curl localhost:9200/
{
  "name" : "runTask-0",
  "cluster_name" : "runTask",
  "cluster_uuid" : "vAOiFtLXSDqYXeCuItQGLA",
  "version" : {
    "distribution" : "opensearch",
    "number" : "1.0.0-SNAPSHOT",
    "build_type" : "tar",
    "build_hash" : "457f8e746edf13c3e519fd2622521787b822a478",
    "build_date" : "2021-06-29T04:15:13.028108Z",
    "build_snapshot" : true,
    "lucene_version" : "8.8.2",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  }
}

turn on compatibility setting

curl -X PUT "localhost:9200/_cluster/settings?pretty" -H 'Content-Type: application/json' -d '{"persistent":{"compatibility":{"override_main_response_version":true}}}'
{
  "acknowledged" : true,
  "persistent" : {
    "compatibility" : {
      "override_main_response_version" : "true"
    }
  },
  "transient" : { }
}
curl localhost:9200/
{
  "name" : "runTask-0",
  "cluster_name" : "runTask",
  "cluster_uuid" : "vAOiFtLXSDqYXeCuItQGLA",
  "version" : {
    "number" : "7.10.2",
    "build_type" : "tar",
    "build_hash" : "457f8e746edf13c3e519fd2622521787b822a478",
    "build_date" : "2021-06-29T04:15:13.028108Z",
    "build_snapshot" : true,
    "lucene_version" : "8.8.2",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  }
}

Issues Resolved

[#880]

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

This Change removes version.distribution when the version.number is
overridden with the cluster setting compatibility.override_main_response_version.

Signed-off-by: Marc Handalian <[email protected]>
@opensearch-ci-bot
Copy link
Collaborator

✅   DCO Check Passed 457f8e7

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Wrapper Validation success 457f8e7

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Precommit success 457f8e7

@adnapibar
Copy link
Contributor

start gradle check

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Check success 457f8e7
Log 265

Reports 265

Copy link
Contributor

@adnapibar adnapibar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@adnapibar adnapibar merged commit c91c29e into opensearch-project:main Jul 1, 2021
tlfeng pushed a commit that referenced this pull request Jul 1, 2021
This Change removes version.distribution when the version.number is
overridden with the cluster setting compatibility.override_main_response_version.

Backport of #898
@nknize nknize added backwards-compatibility bug Something isn't working v1.0.0 Version 1.0.0 pending backport Identifies an issue or PR that still needs to be backported labels Jul 1, 2021
mch2 added a commit to mch2/OpenSearch that referenced this pull request Jul 1, 2021
…rch-project#898)

This Change removes version.distribution when the version.number is
overridden with the cluster setting compatibility.override_main_response_version.

Signed-off-by: Marc Handalian <[email protected]>
nknize pushed a commit that referenced this pull request Jul 2, 2021
…921)

This Change removes version.distribution when the version.number is
overridden with the cluster setting compatibility.override_main_response_version.

Signed-off-by: Marc Handalian <[email protected]>
@nknize nknize removed the pending backport Identifies an issue or PR that still needs to be backported label Jul 2, 2021
@DrissiReda
Copy link

DrissiReda commented Aug 17, 2022

This doesn't work if used through opensearch.yml config file using compatibility.override_main_response_version: true. It is simply ignored. Tested on version 1.3.4

@dblock
Copy link
Member

dblock commented Aug 17, 2022

This doesn't work if used through opensearch.yml config file using compatibility.override_main_response_version: true. It is simply ignored. Tested on version 1.3.4

Open a new bug please?

ritty27 pushed a commit to ritty27/OpenSearch that referenced this pull request May 12, 2024
…ct#898)

* Bump org.owasp.dependencycheck from 9.0.9 to 9.0.10

Bumps org.owasp.dependencycheck from 9.0.9 to 9.0.10.

---
updated-dependencies:
- dependency-name: org.owasp.dependencycheck
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update changelog

Signed-off-by: dependabot[bot] <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backwards-compatibility bug Something isn't working v1.0.0 Version 1.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants