elasticsearch/qa/smoke-test-http
David Turner 30d31bffb2
Introduce RestUtils#getMasterNodeTimeout (#107986)
Many APIs accept a `?master_timeout` parameter, but reading this
parameter requires a little unnecessary boilerplate to specify the
literal parameter name and default value. Moreover, today's convention
is to construct a `MasterNodeRequest` and then read the default master
timeout from the freshly-created request. In practice this results in a
default of 30s, but we specify in the docs that this default is _always_
30s, and in principle one could create a transport request with a
different initial value which would deviate from the documented
behaviour.

This commit introduces a utility method for reading this parameter in a
fashion which is completely consistent with the documented behaviour.

Relates #107984
2024-04-29 08:03:32 +01:00
..
src/javaRestTest/java/org/elasticsearch Introduce RestUtils#getMasterNodeTimeout (#107986) 2024-04-29 08:03:32 +01:00
build.gradle Refactor RestMainAction into separate module (#95881) 2023-05-10 14:39:00 +02:00