elasticsearch-java icon indicating copy to clipboard operation
elasticsearch-java copied to clipboard

.nodes().stats doesn't receive failed nodes count

Open Eliak opened this issue 3 years ago • 1 comments

Java API client version

7.17.8

Java version

8

Elasticsearch Version

7.17

Problem description

There is no way to acquire failed nodes field (/_nodes/failed) from query result. Query result:

{
  "_nodes": {
    "total": 2,
    "successful": 1,
    "failed": 1
  },
  "cluster_name": "swamp",
  "nodes": {}
}

Eliak avatar Jan 11 '23 07:01 Eliak

Hello! Getting the failed nodes should be:

esClient.nodes().stats().nodeStats().failed();

or did you mean something else? let me know :)

l-trotta avatar Mar 22 '24 16:03 l-trotta