Skip to content

Very large windows_size can cause node to run OOM #17522

Closed
@ppf2

Description

@ppf2

Elasticsearch version: 2.1.x, 2.3.1 (not reproducible using 2.0.x)

Steps to reproduce:

  1. Create an empty index (eg. curl -XPUT http://localhost:9200/foo)
  2. Then run the query:
curl -XGET "http://localhost:9200/foo/_search" -d' 
{
  "rescore": {
    "window_size": 10000000,
    "query": {
      "match_all": {}
    }
  }
}'

On 2.0.x, the query will return immediately. On 2.1x and above (including 2.3.1), the query will go to town and use CPU and memory until it OOM.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions