-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Replace 'master' with 'cluster_manager' in 'GET Cat Nodes' API #2441
Replace 'master' with 'cluster_manager' in 'GET Cat Nodes' API #2441
Conversation
Signed-off-by: Tianli Feng <ftianli@amazon.com>
Can one of the admins verify this patch? |
In log 3258:
|
Signed-off-by: Tianli Feng <ftianli@amazon.com>
…ility Signed-off-by: Tianli Feng <ftianli@amazon.com>
Signed-off-by: Tianli Feng <ftianli@amazon.com>
In log 3305:
|
Signed-off-by: Tianli Feng <ftianli@amazon.com>
Signed-off-by: Tianli Feng <ftianli@amazon.com>
efa7a75
to
fb7ec1a
Compare
❌ Gradle Check failure efa7a75372870d03457cb96bcf18bd5402167558 |
In log 3328:
It's reported in #2440 In log 3329:
It's reported in issue #1565. Maybe caused by too many gradle check runs in CI. |
start gradle check |
Just because the documentation describes this as a human readable does not mean that users don't write software that parses the result :) Given that the response is unstructured text, I think this is probably the right way to go, but I suspect someone somewhere will be broken by this change. |
😁 Hi @andrross, you are so correct. I can never realized that the test framework of OpenSearch itself is parsing the result of the CAT Nodes API, until running the BWC test. https://github.com/opensearch-project/OpenSearch/blob/1.2.4/test/framework/src/main/java/org/opensearch/test/rest/yaml/OpenSearchClientYamlSuiteTestCase.java#L326 😂 For example:
I will add this to the PR description as well. |
Description
cm
as the alias for the table headercluster_manager
master
as the alias for the table headercluster_manager
, for keeping compatibility when usingGET _cat/nodes?v&h=master
to show the specific column only.Current response of 'GET Cat Nodes' API:
Proposed response of 'GET Cat Health' API:
Explanation on the API response compatibility
Because "cat API is a human-readable interface" (https://opensearch.org/docs/latest/opensearch/rest-api/cat/index/), and are not intended for use by software program, the old name "master" is not retained.
To keep the same API response with nodes in 1.x version, users can specify "header" in the request parameter, then the API response will remain the same for nodes in both 1.x and 2.x versions.
For example:
Testing
Issues Resolved
Part of #1549
Check List
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.