Support "dry run" mode for updating Desired Nodes#88305
Support "dry run" mode for updating Desired Nodes#88305arteam merged 26 commits intoelastic:mainfrom
Conversation
b3eacbe to
198a5f9
Compare
198a5f9 to
c611576
Compare
|
Hi @arteam, I've created a changelog YAML for you. |
|
@elasticmachine run elasticsearch-ci/part-2 |
|
Pinging @elastic/es-distributed (Team:Distributed) |
6e8e939 to
4932772
Compare
|
@elasticmachine update branch |
|
@elasticmachine update branch |
fcofdez
left a comment
There was a problem hiding this comment.
Looks good, I left a minor comment about the documentation.
| able to take better decisions. | ||
|
|
||
| It's possible to run the update in "dry run" mode by adding the | ||
| `?dry_run` query parameter, or by passing `"dry_run": true` in the request |
There was a problem hiding this comment.
or by passing
"dry_run": truein the request body
I think this is incorrect, we only support the URI query parameter and I would prefer to keep it that way.
There was a problem hiding this comment.
Good catch! To be honest, we accept it in both forms I thought that we accept it in both forms.
fcofdez
left a comment
There was a problem hiding this comment.
LGTM, there's an assertion missing but you can address it and merge without another review round. Thanks! 👍
...-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cluster.desired_nodes/20_dry_run.yml
Show resolved
Hide resolved
Verify that the cluster state hasn't been updated
|
@elasticmachine run elasticsearch-ci/part-2 |
|
Thank you @fcofdez! |
Add the
dry_runquery parameter to support simulating of updating of desired nodes. The update request will be validated, but no cluster state updates will be performed. In order to indicate that the response was a result of a dry run, we add thedry_runrun field to the JSON representation of a response.See #82975