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.x]Pre conditions check before updating weighted routing metadata (#4955) #5539

Merged
merged 1 commit into from
Dec 13, 2022

Conversation

imRishN
Copy link
Member

@imRishN imRishN commented Dec 13, 2022

Pre conditions check to allow weight updates for non decommissioned attribute

Signed-off-by: Rishab Nahata [email protected]

Description

Backport #4955

Issues Resolved

[List any issues this PR will resolve]

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff
  • Commit changes are listed out in CHANGELOG.md file (See: Changelog)

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.

…earch-project#4955)

* Pre conditions check to allow weight updates for non decommissioned attribute

Signed-off-by: Rishab Nahata <[email protected]>
@imRishN imRishN changed the title Pre conditions check before updating weighted routing metadata (#4955) [Backport -2.x]Pre conditions check before updating weighted routing metadata (#4955) Dec 13, 2022
@imRishN imRishN changed the title [Backport -2.x]Pre conditions check before updating weighted routing metadata (#4955) [Backport-2.x]Pre conditions check before updating weighted routing metadata (#4955) Dec 13, 2022
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@codecov-commenter
Copy link

Codecov Report

Merging #5539 (6121b65) into 2.x (eedddab) will decrease coverage by 0.00%.
The diff coverage is 64.70%.

@@             Coverage Diff              @@
##                2.x    #5539      +/-   ##
============================================
- Coverage     70.65%   70.65%   -0.01%     
- Complexity    58333    58358      +25     
============================================
  Files          4701     4702       +1     
  Lines        279198   279239      +41     
  Branches      40772    40776       +4     
============================================
+ Hits         197257   197283      +26     
- Misses        65448    65496      +48     
+ Partials      16493    16460      -33     
Impacted Files Coverage Δ
...ting/UnsupportedWeightedRoutingStateException.java 40.00% <40.00%> (ø)
...search/cluster/routing/WeightedRoutingService.java 77.55% <65.90%> (-10.39%) ⬇️
.../main/java/org/opensearch/OpenSearchException.java 92.27% <100.00%> (+0.01%) ⬆️
...weighted/put/ClusterPutWeightedRoutingRequest.java 62.29% <100.00%> (-2.86%) ⬇️
...adonly/AddIndexBlockClusterStateUpdateRequest.java 0.00% <0.00%> (-75.00%) ⬇️
...readonly/TransportVerifyShardIndexBlockAction.java 9.75% <0.00%> (-58.54%) ⬇️
.../java/org/opensearch/node/NodeClosedException.java 50.00% <0.00%> (-50.00%) ⬇️
...h/action/ingest/SimulateDocumentVerboseResult.java 60.71% <0.00%> (-39.29%) ⬇️
...indices/readonly/TransportAddIndexBlockAction.java 20.68% <0.00%> (-37.94%) ⬇️
.../opensearch/client/indices/CloseIndexResponse.java 56.25% <0.00%> (-35.00%) ⬇️
... and 476 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@Bukhtawar Bukhtawar merged commit f2b725a into opensearch-project:2.x Dec 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants