-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Minor bug fix related to cluster manager throttling settings #5524
Minor bug fix related to cluster manager throttling settings #5524
Conversation
a3f9070
to
dd9c714
Compare
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
dd9c714
to
27ce1fe
Compare
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Dhwanil Patel <dhwanip@amazon.com>
27ce1fe
to
a5998a8
Compare
Gradle Check (Jenkins) Run Completed with:
|
Codecov Report
@@ Coverage Diff @@
## main #5524 +/- ##
============================================
+ Coverage 70.93% 70.96% +0.02%
+ Complexity 58291 58257 -34
============================================
Files 4730 4730
Lines 278230 278237 +7
Branches 40243 40244 +1
============================================
+ Hits 197375 197439 +64
+ Misses 64731 64645 -86
- Partials 16124 16153 +29
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Dhwanil Patel <dhwanip@amazon.com>
426cfb9
to
b863d23
Compare
Gradle Check (Jenkins) Run Completed with:
|
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.
Thanks! I have some nits. CHANGELOG changes are needed, the rest we can debate if you want.
server/src/test/java/org/opensearch/cluster/service/ClusterManagerTaskThrottlerTests.java
Outdated
Show resolved
Hide resolved
settingKeys.addAll(tasksThreshold.keySet()); | ||
for (String key : settingKeys) { | ||
Settings setting = groups.get(key); | ||
if (setting == null) { |
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.
Maybe we can use .orElse
kind of thing.
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.
Here if setting is not null we want to get specific value from it, so orElse
might not work here.
To improve readability, I have used ternary operator, let me know if that helps.
server/src/main/java/org/opensearch/cluster/service/ClusterManagerTaskThrottler.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Dhwanil Patel <dhwanip@amazon.com>
Signed-off-by: Dhwanil Patel <dhwanip@amazon.com>
Gradle Check (Jenkins) Run Completed with:
|
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/backport-2.x
# Create a new branch
git switch --create backport/backport-5524-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 b782299e4ef26df87e0a144ce30c8a6d43381af2
# Push it to GitHub
git push --set-upstream origin backport/backport-5524-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/backport-2.x Then, create a pull request where the |
Signed-off-by: Dhwanil Patel dhwanip@amazon.com
Description
Below bug fix related to cluster manager throttling thresholds settings.
Fixed above both bugs in this PR and added relevant UTs for it.
Issues Resolved
#479
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.