-
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
Add version check during task submission for bwc for static threshold setting #5633
Merged
shwetathareja
merged 4 commits into
opensearch-project:main
from
dhwanilpatel:bwc_static_setting
Dec 27, 2022
Merged
Add version check during task submission for bwc for static threshold setting #5633
shwetathareja
merged 4 commits into
opensearch-project:main
from
dhwanilpatel:bwc_static_setting
Dec 27, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dhwanilpatel
force-pushed
the
bwc_static_setting
branch
from
December 26, 2022 12:21
e8c99a3
to
f4350cf
Compare
… setting Signed-off-by: Dhwanil Patel <dhwanip@amazon.com>
dhwanilpatel
force-pushed
the
bwc_static_setting
branch
from
December 26, 2022 12:26
f4350cf
to
d10d550
Compare
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
dhwanilpatel
requested review from
reta,
anasalkouz,
andrross,
Bukhtawar,
CEHENKLE,
dblock,
setiah,
kartg,
kotwanikunal,
mch2,
nknize,
owaiskazi19,
adnapibar,
Rishikesh1159,
ryanbogan,
saratvemulapalli,
shwetathareja,
dreamer-89,
tlfeng,
VachaShah and
xuezhou25
as code owners
December 26, 2022 12:59
Codecov Report
@@ Coverage Diff @@
## main #5633 +/- ##
============================================
- Coverage 71.16% 70.94% -0.22%
+ Complexity 58621 58461 -160
============================================
Files 4757 4757
Lines 279194 279202 +8
Branches 40316 40318 +2
============================================
- Hits 198675 198078 -597
- Misses 64302 64875 +573
- Partials 16217 16249 +32
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
minor comments. thanks @dhwanilpatel
server/src/main/java/org/opensearch/cluster/service/ClusterManagerTaskThrottler.java
Show resolved
Hide resolved
server/src/main/java/org/opensearch/cluster/service/ClusterManagerTaskThrottler.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/cluster/service/ClusterManagerTaskThrottler.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/cluster/service/ClusterManagerTaskThrottler.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/cluster/service/ClusterManagerTaskThrottler.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Dhwanil Patel <dhwanip@amazon.com>
dhwanilpatel
force-pushed
the
bwc_static_setting
branch
from
December 27, 2022 10:08
7fd120e
to
31fb3a0
Compare
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
server/src/main/java/org/opensearch/cluster/service/ClusterManagerTaskThrottler.java
Outdated
Show resolved
Hide resolved
shwetathareja
approved these changes
Dec 27, 2022
Signed-off-by: Dhwanil Patel <dhwanip@amazon.com>
Signed-off-by: Dhwanil Patel <dhwanip@amazon.com>
shwetathareja
approved these changes
Dec 27, 2022
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Dhwanil Patel dhwanip@amazon.com
Description
Changed version of the ClusterManagerThrottlingException.
BWC for thresholds set via static setting
When throttling threshold setting is set via static setting (yml) file, it can be updated and feature can throttle the task even when older nodes are present in cluster.
Added check on task submission of configured task for throttling to check for version check. If older nodes are present, it will not perform throttling to provide backward compatibility.
Once all nodes are higher than 2.5.0, it will start throttling based on threshold and wont be disabled again.
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.