-
Notifications
You must be signed in to change notification settings - Fork 191
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
[BUG] Issue with Getting Cluster Stats Using AwsSdk2Transport, throws MissingRequiredPropertyException: Missing required property 'ClusterOperatingSystemName.name' #1330
Comments
The spec still shows the |
Thank you @Xtansia, I did notice that the cluster name does come back when I use a regular Apache HTTP client with a request interceptor, it returns the ClusterResponse accordingly. Thanks for looking into this, please let me know when you can work on a fix. |
@victorekpo Just to confirm, are you saying it returns correctly when connecting to the exact same cluster? |
@Xtansia yes, it returns correctly when not using AwsSdk2Transport, the error is specific to using that transport. |
@Xtansia Let me know if you need the full stack trace, when I tested locally I saw that AwsSdk2Transport tries to decode the response and it fails, here is part of it:
|
@victorekpo That is strange, could you provide a couple snippets of how you configure the two versions of the client? |
Sure With the AWS Sdk2 Transport
With Apache Transport
|
@victorekpo Thanks for providing those, could you also provide the |
Sorry for the late reply on this, for some reason im not seeing my notifications. @Xtansia , we are on the latest version of Opensearch for the cluster, which is 2.17. The openSearchRequestInterceptor can be ignored since its just adding an extra header, we are going to remove this on our end as well. |
What is the bug?
There is an issue when trying to get cluster stats using the
cluster().stats()
method while utilizing theAwsSdk2Transport
. The following exception is thrown:org.opensearch.client.util.MissingRequiredPropertyException: Missing required property 'ClusterOperatingSystemName.name'
How can one reproduce the bug?
Code Example:
The text was updated successfully, but these errors were encountered: