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

Fixing cluster stats response for role types and adding search role type #848

Merged
merged 2 commits into from
Feb 15, 2024

Conversation

VachaShah
Copy link
Collaborator

Description

When calling the cluster stats api from the client, the call fails with the following error:

org.opensearch.client.util.MissingRequiredPropertyException: Missing required property 'ClusterNodeCount.votingOnly'

Upon further debugging, I found other role types as well in the client which are not supported by OpenSearch. Fixing the cluster stats API call in this PR. I also added the search role type which was added in OpenSearch 2.4.0.

Issues Resolved

List any issues this PR will resolve, e.g. Closes [...].

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.

Signed-off-by: Vacha Shah <vachshah@amazon.com>
Signed-off-by: Vacha Shah <vachshah@amazon.com>
@VachaShah VachaShah merged commit 638d9b9 into opensearch-project:main Feb 15, 2024
49 checks passed
@VachaShah VachaShah added the backport 2.x Backport to 2.x branch label Feb 15, 2024
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 15, 2024
…ype (#848)

* Fixing cluster stats response for role types and adding search role type

Signed-off-by: Vacha Shah <vachshah@amazon.com>

* Add CHANGELOG

Signed-off-by: Vacha Shah <vachshah@amazon.com>

---------

Signed-off-by: Vacha Shah <vachshah@amazon.com>
(cherry picked from commit 638d9b9)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
VachaShah added a commit that referenced this pull request Feb 15, 2024
…g search role type (#849)

* Fixing cluster stats response for role types and adding search role type (#848)

* Fixing cluster stats response for role types and adding search role type

Signed-off-by: Vacha Shah <vachshah@amazon.com>

* Add CHANGELOG

Signed-off-by: Vacha Shah <vachshah@amazon.com>

---------

Signed-off-by: Vacha Shah <vachshah@amazon.com>
(cherry picked from commit 638d9b9)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Fixing missing required property exception for cluster manager for 1.x servers

Signed-off-by: Vacha Shah <vachshah@amazon.com>

---------

Signed-off-by: Vacha Shah <vachshah@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Vacha Shah <vachshah@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Backport to 2.x branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants