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

[BUG] org.opensearch.client.util.MissingRequiredPropertyException: Missing required property 'DataPathStats.mount' #872

Open
KaueMoura opened this issue Feb 22, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@KaueMoura
Copy link

What is the bug?

When a try to get node stats information the exception is thrown.
org.opensearch.client.util.MissingRequiredPropertyException: Missing required property 'DataPathStats.mount'

How can one reproduce the bug?

Just get a Opensearch client object and execute this code example.

final OpenSearchClient opClient = OpensearchFactory.getInstance();
final OpenSearchNodesClient nodes = opClient.nodes();
final NodesStatsResponse stats = nodes.stats();  // <- Exception here
System.out.println(stats.nodeStats().total());
System.out.println(stats.nodeStats().successful());
System.out.println(stats.nodeStats().failed());

What is the expected behavior?

I would like to run this code in order to get part of the information from the JSON returned in the node stats api.
Request: GET _nodes/stats

"_nodes": {
    "total": 1,
    "successful": 1,
    "failed": 0
},[...]

What is your host/environment?

opensearch-java client version
2.8.4

OpenSearch version
2.11 (Amazon OpenSearch Service)

@KaueMoura KaueMoura added bug Something isn't working untriaged labels Feb 22, 2024
@dennisoelkers
Copy link

Refs #894.

@dblock dblock removed the untriaged label Apr 16, 2024
@bubkoltet
Copy link

bubkoltet commented Oct 30, 2024

Issue still present in opensearch-java-client 2.16.0 and AWS OpenSearch 2.15.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants