Skip to content

search.default_search_timeout NOT working #21595

@xgwu

Description

@xgwu

Elasticsearch version:
5.0.0
Plugins installed: []
NONE
JVM version:
1.8.0_77
OS version:
CentOS release 6.4 (Final)
Linux 2.6.32-431.29.2.el6.x86_64 #1 SMP Tue Sep 9 21:36:05 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Description of the problem including expected versus actual behavior:
Since upgrading from v2.4.0 to v5.0.0, the global search timeout has no effect any more.
Steps to reproduce:

  1. Setting Global search timeout to a low value, for example 1s
    PUT /_cluster/settings
    {
    "transient": {
    "search.default_search_timeout": "1s"
    }
    }
  2. Execute an expensive Query which takes far longer time than 1s
  3. The Query is not timed out as expected and "timed_out" value returned within response body shows as "false".
  4. If rerun the query with query level timeout set within query body, the query is timed out as expected.

Provide logs (if relevant):

Describe the feature:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions