Run TransportGetComponentTemplateAction on local node#116868
Run TransportGetComponentTemplateAction on local node#116868nielsbauman merged 22 commits intoelastic:mainfrom
Conversation
This action solely needs the cluster state, it can run on any node. Additionally, it needs to be cancellable to avoid doing unnecessary work after a client failure or timeout. The `?local` and `?master_timeout` parameters become a no-op and are marked as deprecated. Relates elastic#101805 Relates elastic#107984
server/src/main/java/org/elasticsearch/action/support/TransportLocalClusterStateAction.java
Outdated
Show resolved
Hide resolved
|
|
||
| // Remove the BWC support for the deprecated ?master_timeout parameter. | ||
| // NOTE: ensure each usage of this method has been deprecated for long enough to remove it. | ||
| @UpdateForV10(owner = UpdateForV10.Owner.DISTRIBUTED_COORDINATION) |
There was a problem hiding this comment.
I marked Distributed as owner as I figured they own this class. I could also (additionally or instead) add the annotation to the REST action.
|
Pinging @elastic/es-data-management (Team:Data Management) |
|
Hi @nielsbauman, I've created a changelog YAML for you. |
|
@elasticmachine update branch |
|
There are no new commits on the base branch. |
# Conflicts: # server/src/main/java/org/elasticsearch/action/support/TransportLocalClusterStateAction.java
# Conflicts: # server/src/main/java/org/elasticsearch/action/admin/indices/template/get/GetComponentTemplateAction.java
|
@DaveCTurner could you have a look at this when you have time? I'm not planning on asking for your review for every Data Management API that I'm updating, but this one includes some changes to |
...r/src/main/java/org/elasticsearch/action/support/local/TransportLocalClusterStateAction.java
Outdated
Show resolved
Hide resolved
|
run docs-build |
|
Pinging @elastic/es-docs (Team:Docs) |
|
Hi @nielsbauman, I've created a changelog YAML for you. |
dakrone
left a comment
There was a problem hiding this comment.
The consumer needs to consume the parameter (even if it discards it) when using the rest compat V_8 version. Can you also add a test for this?
| - requires: | ||
| test_runner_features: ["headers"] |
There was a problem hiding this comment.
I figured this test should always pass - even before this change. But please check my reasoning on that.
This action solely needs the cluster state, it can run on any node. Additionally, it needs to be cancellable to avoid doing unnecessary work after a client failure or timeout.
The
?localparameter becomes a no-op and is marked as deprecated.Relates #101805
Relates #107984