-
Notifications
You must be signed in to change notification settings - Fork 25k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run TransportGetComponentTemplateAction on local node #116868
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I figured this test should always pass - even before this change. But please check my reasoning on that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks Niels!
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` parameter becomes a no-op and is marked as deprecated. Relates elastic#101805 Relates elastic#107984
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
parameter becomes a no-op and is marked as deprecated.Relates #101805
Relates #107984