elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.76k stars 8.16k forks source link

Allow timeout specified in request body to override timeout from settings #126485

Open cjcenizal opened 2 years ago

cjcenizal commented 2 years ago

Problem

Elasticsearch supports a timeout parameter. At the same time, Console configures requests with the elasticsearch.requestTimeout defined in kibana.yml. If the latter is shorter than the former, then requests sent in Console can time out unexpectedly. This behavior creates a discrepancy with the behavior of an identical request sent through cURL, which isn't subject to the elasticsearch.requestTimeout setting, and so won't time out.

Solution

We can solve this by checking if there's a timeout parameter set in the request, compare it to the value set in elasticsearch.requestTimeout, and configure the request to use the greater value of the two.

elasticmachine commented 2 years ago

Pinging @elastic/platform-deployment-management (Team:Deployment Management)

elasticmachine commented 2 weeks ago

Pinging @elastic/kibana-management (Team:Kibana Management)