-
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
HLRC: split cluster request converters #33400
Conversation
In an effort to encapsulate the different clients, the request converters are being shuffled around. This splits the ClusterClient request converters.
Pinging @elastic/es-core-infra |
@@ -134,6 +134,7 @@ protected static void clusterUpdateSettings(Settings persistentSettings, | |||
ClusterUpdateSettingsRequest request = new ClusterUpdateSettingsRequest(); | |||
request.persistentSettings(persistentSettings); | |||
request.transientSettings(transientSettings); | |||
assertOK(client().performRequest(RequestConverters.clusterPutSettings(request))); | |||
assertTrue(execute( |
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 moved to using the HLRC here because I did not want the ClusterRequestConverter used in this class.
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 think it should be enough to just call the API without any assertion. We already should already throw an exception if the response isn't a 200.
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.
heh, so then we should remove the bool on the AcknowledgedResponse
:)
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
* master: Fix deprecated setting specializations (elastic#33412) HLRC: split cluster request converters (elastic#33400) HLRC: Add ML get influencers API (elastic#33389) Add conditional token filter to elasticsearch (elastic#31958) Build: Merge xpack checkstyle config into core (elastic#33399) Disable IndexRecoveryIT.testRerouteRecovery. INGEST: Implement Drop Processor (elastic#32278) [ML] Add field stats to log structure finder (elastic#33351) Add interval response parameter to AutoDateInterval histogram (elastic#33254) MINOR+CORE: Remove Dead Methods ClusterService (elastic#33346)
In an effort to encapsulate the different clients, the request converters are being shuffled around. This splits the ClusterClient request converters.
In an effort to encapsulate the different clients, the request
converters are being shuffled around. This splits the ClusterClient
request converters.