Skip to content

Node Stats API in 7.15 broken #1535

@olivere

Description

@olivere

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:

  1. Use 7.15.0
  2. 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
        },
        ...

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions