Refactor WLM settings to use Setting objects and rename field - #21143
Conversation
PR Reviewer Guide 🔍(Review updated until commit e480464)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to e480464 Explore these optional code suggestions:
Previous suggestionsSuggestions up to commit 348b661
Suggestions up to commit 2d5a5b1
Suggestions up to commit a67bbac
Suggestions up to commit 76b3314
|
76b3314 to
a67bbac
Compare
|
Persistent review updated to latest commit a67bbac |
|
@jainankitk @cwperks Can anyone review this PR? |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #21143 +/- ##
============================================
+ Coverage 73.44% 73.47% +0.03%
- Complexity 74456 74464 +8
============================================
Files 5967 5967
Lines 338232 338230 -2
Branches 48755 48749 -6
============================================
+ Hits 248399 248515 +116
+ Misses 70075 69870 -205
- Partials 19758 19845 +87 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
a67bbac to
2d5a5b1
Compare
dzane17
left a comment
There was a problem hiding this comment.
I had manually tested the old setting names (in PR description). Also added a couple unit tests now.
|
Persistent review updated to latest commit 2d5a5b1 |
|
@dzane17 apologies for delay on feedback. I will be taking a look at this in earnest asap (most likely Monday morning). |
@dzane17 I'm aligned with this renaming, but is this considered a breaking change? Should this support either legacy key ( Edit: Disregard, I see this is addressed in the PR Description
|
|
Persistent review updated to latest commit 348b661 |
Signed-off-by: David Zane <davizane@amazon.com>
|
Persistent review updated to latest commit e480464 |
|
❌ Gradle check result for e480464: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
❕ Gradle check result for e480464: UNSTABLE Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
|
@cwperks this pull request was merged with the failing checks :( now all pull request fail the breaking changes verification ... |
@reta my bad I will take a look tn.
This was intentional on this PR and I thought it was the cause of the detect breaking changes failure on this PR. |
|
@dzane17 Can you please help take a look as well? |
…arch-project#21143) Signed-off-by: David Zane <davizane@amazon.com>
…arch-project#21143) Signed-off-by: David Zane <davizane@amazon.com>
Description
This PR refactors the workload group settings introduced in #20536. The
search_settingsfield (added in 3.6 as@ExperimentalApi) is replaced with asettingsfield backed by the OpenSearchSettingsframework instead of a rawMap<String, String>.Changes:
"search_settings"to"settings""timeout"to"search.default_search_timeout"to match the cluster setting nameMap<String, String>withSettingsobjects internallyWorkloadGroupSearchSettingsandWorkloadGroup.getSettings()as@ExperimentalApiBackward compatibility (3.6 → 3.7 rolling upgrade)
"settings"field and"search.default_search_timeout"key after upgrade. This is permitted becausesearch_settingswas marked@ExperimentalApi.Testing
Create group with settings
Update settings
Create group without settings
Old field name "search_settings" rejected
Old key name "timeout" rejected
Invalid time value rejected
Update resource_limits only — settings preserved
Clear settings with empty object
Related Issues
Part of #20555
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.