Skip to content
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

[Backport 2.0] Centralize codes related to 'master_timeout' deprecation for eaiser removal - in CAT Nodes API #2696

Merged
merged 1 commit into from
Apr 1, 2022

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport e1ee222 from #2670

…emoval - in CAT Nodes API (#2670)

* Move parseDeprecatedMasterTimeoutParameter method into BaseRestHandler class to reduce duplication

Signed-off-by: Tianli Feng <[email protected]>

* Add more comments to unit test

Signed-off-by: Tianli Feng <[email protected]>

* Make log message key different

Signed-off-by: Tianli Feng <[email protected]>

* Prohibit using 'master_timeout' and 'cluster_manager_timeout' parameter together

Signed-off-by: Tianli Feng <[email protected]>

* Add separate unit tests for BaseRestHandler.parseDeprecatedMasterTimeoutParameter()

Signed-off-by: Tianli Feng <[email protected]>

* Restore unit test for cat allocation api

Signed-off-by: Tianli Feng <[email protected]>

* Adjust format by spotlessApply task

Signed-off-by: Tianli Feng <[email protected]>

* Fix testBothParamsNotValid() by adding warning assertion

Signed-off-by: Tianli Feng <[email protected]>
(cherry picked from commit e1ee222)
@opensearch-trigger-bot opensearch-trigger-bot bot requested a review from a team as a code owner April 1, 2022 01:26
@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Check success c53ccf7
Log 4002

Reports 4002

@tlfeng tlfeng added enhancement Enhancement or improvement to existing feature or request v2.0.0 Version 2.0.0 backport PRs or issues specific to backporting features or enhancments labels Apr 1, 2022
@tlfeng tlfeng merged commit e3891c7 into 2.0 Apr 1, 2022
@tlfeng tlfeng deleted the backport/backport-2670-to-2.0 branch April 1, 2022 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport PRs or issues specific to backporting features or enhancments enhancement Enhancement or improvement to existing feature or request v2.0.0 Version 2.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants