Skip to content

RestStatus of "too_many_buckets_exception" #37957

@delvedor

Description

@delvedor

Hello!
I'm running the integration test for the JavaScript client with Elasticsearch version 7.
The test highlighted here is failing because the status code of the error is 503, and every client will mark the connection as dead and retry with a new one if the status code is 502, 503 or 504.

Following the error that I'm getting back from ES:

{  
  "body":{  
    "error":{  
      "root_cause":[  
        {  
          "type":"too_many_buckets_exception",
          "reason":"Trying to create too many buckets. Must be less than or equal to: [3] but was [8]. This limit can be set by changing the [search.max_buckets] cluster level setting.",
          "max_buckets":3
        }
      ],
      "type":"search_phase_execution_exception",
      "reason":"all shards failed",
      "phase":"query",
      "grouped":true,
      "failed_shards":[  
        {  
          "shard":0,
          "index":"test",
          "node":"90I7wSEvQwOuQvfE6GYpJg",
          "reason":{  
            "type":"too_many_buckets_exception",
            "reason":"Trying to create too many buckets. Must be less than or equal to: [3] but was [8]. This limit can be set by changing the [search.max_buckets] cluster level setting.",
            "max_buckets":3
          }
        }
      ]
    },
    "status":503
  },
  "statusCode":503,
  "headers":{  
    "content-type":"application/json; charset=UTF-8",
    "content-length":"687"
  },
  "warnings":null
}

This might be related to #31986.
cc @elastic/es-clients

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions