-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Description
Seems like the Node Stats API in 7.15.0 is broken due to this change (reported here). See also elastic/elasticsearch#78311.
How to reproduce:
- Use 7.15.0
- Run the Node Stats API with
level=shards
:$ curl -H 'Content-Type: application/json' -XGET 'http://localhost:9200/_nodes/stats?level=shards&human=true&pretty=true'
Expected outcome:
All JSON keys on the same level are different.
Actual response:
You'll get a duplicate JSON key for shards
:
...
"indices" : {
"docs" : {
"count" : 48,
"deleted" : 0
},
"shards" : { // <--
"total_count" : 2
},
...
"shards" : { // <--
".tasks" : [
{
"0" : {
"routing" : {
"state" : "STARTED",
"primary" : true,
"node" : "f8Z10TwPSKqTNsnnJiFRtg",
"relocating_node" : null
},
"docs" : {
"count" : 5,
"deleted" : 0
},
"memory_size_in_bytes" : 0,
"evictions" : 0
},
...