-
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
Fix inconsistent cluster state and ensure weigh away exception check only for data nodes #6327
Fix inconsistent cluster state and ensure weigh away exception check only for data nodes #6327
Conversation
…is done only on data nodes Signed-off-by: Anshu Agarwal <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
listener.onFailure(new NodeWeighedAwayException("local node is weighed away")); | ||
return; | ||
DiscoveryNode localNode = currentState.getNodes().getLocalNode(); | ||
if (localNode.isDataNode()) { |
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.
Should it be made more generic based on roles?
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.
we can do that but can we say that all data nodes have DATA_ROLE
? And warm nodes don't have DATA_ROLE
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.
added a todo
to take this later
Signed-off-by: Anshu Agarwal <[email protected]>
Signed-off-by: Anshu Agarwal <[email protected]>
dc1981d
to
3e6d718
Compare
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #6327 +/- ##
============================================
+ Coverage 70.68% 70.75% +0.06%
- Complexity 58994 59018 +24
============================================
Files 4800 4800
Lines 282427 282430 +3
Branches 40717 40719 +2
============================================
+ Hits 199641 199822 +181
+ Misses 66378 66171 -207
- Partials 16408 16437 +29
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
CHANGELOG.md
Outdated
@@ -122,6 +122,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | |||
- [Segment Replication] Fix for peer recovery ([#5344](https://github.com/opensearch-project/OpenSearch/pull/5344)) | |||
- Fix weighted shard routing state across search requests([#6004](https://github.com/opensearch-project/OpenSearch/pull/6004)) | |||
- [Segment Replication] Fix bug where inaccurate sequence numbers are sent during replication ([#6122](https://github.com/opensearch-project/OpenSearch/pull/6122)) | |||
- [Weighted Routing] Fix inconsistent cluster state and ensure weigh away exception check only for data nodes ([#6327](https://github.com/opensearch-project/OpenSearch/pull/6327)) |
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.
lets skip this as it is not a user facing change.
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Anshu Agarwal <[email protected]>
f0bc61d
to
68d8a0c
Compare
Gradle Check (Jenkins) Run Completed with:
|
…only for data nodes (#6327) * Fix inconsistent cluster state and ensure weigh away exception check is done only on data nodes Signed-off-by: Anshu Agarwal <[email protected]> (cherry picked from commit 95142c6) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…only for data nodes (#6327) (#6407) Signed-off-by: Anshu Agarwal <[email protected]>
Description
This PR fixes inconsistent cluster state with ensure_weighed_in param while make cluster health api call.
Also adds support for weighed away health check only for data nodes.
Issues Resolved
[List any issues this PR will resolve]
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.