OpenSearch icon indicating copy to clipboard operation
OpenSearch copied to clipboard

Add PUT api to update shard routing weights

Open anshu1106 opened this issue 3 years ago • 21 comments

Description

This pull request adds PUT api to add/update weights for weighted routing policy.

Issues Resolved

2859 3639

Check List

  • [x] New functionality includes testing.
    • [x] All tests pass
  • [x] New functionality has been documented.
    • [x] New functionality has javadoc added
  • [x] Commits are signed per the DCO using --signoff

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.

anshu1106 avatar Aug 22 '22 11:08 anshu1106

Gradle Check (Jenkins) Run Completed with:

  • RESULT: FAILURE :x:
  • URL: https://build.ci.opensearch.org/job/gradle-check/1979/
  • CommitID: 026d3abfae2bbdca2b3e58a43dbfcafe52570a25

github-actions[bot] avatar Aug 22 '22 11:08 github-actions[bot]

  1. precommit is failing. You can run ./gradlew precommit and check why it is failing. Mostly it is spotless check that fails.
  2. build is failing. Please fix.
  3. In PR description, update the checklist accordingly. Also, remove the placeholder text like [Describe what this change achieves]

sachinpkale avatar Aug 25 '22 08:08 sachinpkale

Gradle Check (Jenkins) Run Completed with:

  • RESULT: FAILURE :x:
  • URL: https://build.ci.opensearch.org/job/gradle-check/2186/
  • CommitID: 2f98d20a4fa2a881c4f91c184904602c118e1828

github-actions[bot] avatar Aug 29 '22 12:08 github-actions[bot]

Gradle Check (Jenkins) Run Completed with:

  • RESULT: SUCCESS :white_check_mark:
  • URL: https://build.ci.opensearch.org/job/gradle-check/2420/
  • CommitID: f07a9add444a9c559ecf0c9bcee2eb9892f9e678

github-actions[bot] avatar Sep 01 '22 12:09 github-actions[bot]

Codecov Report

Merging #4272 (0a10275) into main (bb47419) will increase coverage by 0.01%. The diff coverage is 61.90%.

@@             Coverage Diff              @@
##               main    #4272      +/-   ##
============================================
+ Coverage     70.55%   70.56%   +0.01%     
- Complexity    57432    57544     +112     
============================================
  Files          4635     4642       +7     
  Lines        276645   276792     +147     
  Branches      40489    40502      +13     
============================================
+ Hits         195180   195315     +135     
- Misses        65094    65121      +27     
+ Partials      16371    16356      -15     
Impacted Files Coverage Δ
...eighted/put/ClusterPutWeightedRoutingResponse.java 0.00% <0.00%> (ø)
.../org/opensearch/client/support/AbstractClient.java 34.16% <0.00%> (-0.10%) :arrow_down:
...eighted/put/TransportPutWeightedRoutingAction.java 34.78% <34.78%> (ø)
...weighted/put/ClusterPutWeightedRoutingRequest.java 66.12% <66.12%> (ø)
...search/cluster/routing/WeightedRoutingService.java 70.96% <70.96%> (ø)
...n/cluster/RestClusterPutWeightedRoutingAction.java 76.92% <76.92%> (ø)
.../main/java/org/opensearch/action/ActionModule.java 98.18% <100.00%> (+0.01%) :arrow_up:
.../weighted/put/ClusterPutWeightedRoutingAction.java 100.00% <100.00%> (ø)
...d/put/ClusterPutWeightedRoutingRequestBuilder.java 100.00% <100.00%> (ø)
.../src/main/java/org/opensearch/client/Requests.java 46.00% <100.00%> (+1.10%) :arrow_up:
... and 500 more

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

codecov-commenter avatar Sep 01 '22 12:09 codecov-commenter

Gradle Check (Jenkins) Run Completed with:

  • RESULT: FAILURE :x:
  • URL: https://build.ci.opensearch.org/job/gradle-check/2531/
  • CommitID: e7e592fd31b8fc2aec983ac52f4ae4fe7d1c6c3d

github-actions[bot] avatar Sep 02 '22 10:09 github-actions[bot]

Gradle Check (Jenkins) Run Completed with:

  • RESULT: FAILURE :x:
  • URL: https://build.ci.opensearch.org/job/gradle-check/2532/
  • CommitID: e12d24756675ce35c6dd53bafda41ae5d96ef6f4

github-actions[bot] avatar Sep 02 '22 10:09 github-actions[bot]

Gradle Check (Jenkins) Run Completed with:

  • RESULT: SUCCESS :white_check_mark:
  • URL: https://build.ci.opensearch.org/job/gradle-check/2533/
  • CommitID: 3dd1d1ad16de9a48bdc31dd22eb900698d082dae

github-actions[bot] avatar Sep 02 '22 10:09 github-actions[bot]

Gradle Check (Jenkins) Run Completed with:

  • RESULT: FAILURE :x:
  • URL: https://build.ci.opensearch.org/job/gradle-check/3189/
  • CommitID: f06a0398451fa5413ccfc7a671c52e8eaf77ee88

github-actions[bot] avatar Sep 19 '22 08:09 github-actions[bot]

Gradle Check (Jenkins) Run Completed with:

  • RESULT: FAILURE :x:
  • URL: https://build.ci.opensearch.org/job/gradle-check/3191/
  • CommitID: 0a4b829e37d6e63a1341f3d6de9366f9aca07591

github-actions[bot] avatar Sep 19 '22 10:09 github-actions[bot]

Gradle Check (Jenkins) Run Completed with:

  • RESULT: FAILURE :x:
  • URL: https://build.ci.opensearch.org/job/gradle-check/3192/
  • CommitID: 5f451d4bbc75871507c7a1fe9b34cc56b6bc9403

github-actions[bot] avatar Sep 19 '22 10:09 github-actions[bot]

Gradle Check (Jenkins) Run Completed with:

  • RESULT: FAILURE :x:
  • URL: https://build.ci.opensearch.org/job/gradle-check/3193/
  • CommitID: 4f349e924dd3908797cc6b8a263e625e746b7584

github-actions[bot] avatar Sep 19 '22 11:09 github-actions[bot]

Gradle Check (Jenkins) Run Completed with:

  • RESULT: FAILURE :x:
  • URL: https://build.ci.opensearch.org/job/gradle-check/3194/
  • CommitID: e59cff2329e17a57ee4b4132b1a830c74c8732c0

github-actions[bot] avatar Sep 19 '22 11:09 github-actions[bot]

Gradle Check (Jenkins) Run Completed with:

  • RESULT: FAILURE :x:
  • URL: https://build.ci.opensearch.org/job/gradle-check/3195/
  • CommitID: dc79fec66206973f6a5ca9690191df29c8a24ff7

github-actions[bot] avatar Sep 19 '22 11:09 github-actions[bot]

Gradle Check (Jenkins) Run Completed with:

  • RESULT: FAILURE :x:
  • URL: https://build.ci.opensearch.org/job/gradle-check/3196/
  • CommitID: 7671d6318a2eeafe5f7c16946574ae8211bf0643

github-actions[bot] avatar Sep 19 '22 12:09 github-actions[bot]

Gradle Check (Jenkins) Run Completed with:

  • RESULT: FAILURE :x:
  • URL: https://build.ci.opensearch.org/job/gradle-check/3197/
  • CommitID: 454387d930b66af10c119857bd955907eea6e885

github-actions[bot] avatar Sep 19 '22 13:09 github-actions[bot]

Gradle Check (Jenkins) Run Completed with:

  • RESULT: FAILURE :x:
  • URL: https://build.ci.opensearch.org/job/gradle-check/3209/
  • CommitID: 90a30c6f4b9ee7225f07d6aae852d97d688bed0e

github-actions[bot] avatar Sep 19 '22 14:09 github-actions[bot]

Gradle Check (Jenkins) Run Completed with:

  • RESULT: SUCCESS :white_check_mark:
  • URL: https://build.ci.opensearch.org/job/gradle-check/3240/
  • CommitID: 6b8f61eb6761fab3d748adac9554a87ca00f2fc1

github-actions[bot] avatar Sep 20 '22 10:09 github-actions[bot]

Gradle Check (Jenkins) Run Completed with:

  • RESULT: SUCCESS :white_check_mark:
  • URL: https://build.ci.opensearch.org/job/gradle-check/3241/
  • CommitID: a03eef1829a133082677e0585e47cf919a4ebee4

github-actions[bot] avatar Sep 20 '22 11:09 github-actions[bot]

Gradle Check (Jenkins) Run Completed with:

  • RESULT: SUCCESS :white_check_mark:
  • URL: https://build.ci.opensearch.org/job/gradle-check/3242/
  • CommitID: 663017fcd7720f39a51efdd82ea714473bb4f29d

github-actions[bot] avatar Sep 20 '22 12:09 github-actions[bot]

Gradle Check (Jenkins) Run Completed with:

  • RESULT: SUCCESS :white_check_mark:
  • URL: https://build.ci.opensearch.org/job/gradle-check/3288/
  • CommitID: 70790e94584124fb59588383a15999877f84f7e0

github-actions[bot] avatar Sep 21 '22 11:09 github-actions[bot]

Gradle Check (Jenkins) Run Completed with:

  • RESULT: FAILURE :x:
  • URL: https://build.ci.opensearch.org/job/gradle-check/3306/
  • CommitID: ba87256565dd3e8f37053087ac3c53e93a0beaa8

github-actions[bot] avatar Sep 22 '22 05:09 github-actions[bot]

Gradle Check (Jenkins) Run Completed with:

  • RESULT: SUCCESS :white_check_mark:
  • URL: https://build.ci.opensearch.org/job/gradle-check/3307/
  • CommitID: 4057441bb28e5a6aedc375b732b5ce73dae5cc42

github-actions[bot] avatar Sep 22 '22 05:09 github-actions[bot]

Gradle Check (Jenkins) Run Completed with:

  • RESULT: SUCCESS :white_check_mark:
  • URL: https://build.ci.opensearch.org/job/gradle-check/3335/
  • CommitID: 83797f41129f73a0bc0e96693e40a4248fa03778

github-actions[bot] avatar Sep 23 '22 10:09 github-actions[bot]

Gradle Check (Jenkins) Run Completed with:

  • RESULT: SUCCESS :white_check_mark:
  • URL: https://build.ci.opensearch.org/job/gradle-check/3382/
  • CommitID: 0a102750c5ae82eb1d3c9bca8c92ce0282aa32b5

github-actions[bot] avatar Sep 26 '22 06:09 github-actions[bot]

Gradle Check (Jenkins) Run Completed with:

  • RESULT: SUCCESS :white_check_mark:
  • URL: https://build.ci.opensearch.org/job/gradle-check/3386/
  • CommitID: 006600c9fed794c5437505e8d6d5ecd8e0fd4877

github-actions[bot] avatar Sep 26 '22 07:09 github-actions[bot]

Gradle Check (Jenkins) Run Completed with:

  • RESULT: SUCCESS :white_check_mark:
  • URL: https://build.ci.opensearch.org/job/gradle-check/3387/
  • CommitID: dffd51c63699cf365c2f7603104753e0b3df7581

github-actions[bot] avatar Sep 26 '22 07:09 github-actions[bot]

Gradle Check (Jenkins) Run Completed with:

  • RESULT: UNSTABLE :x:
  • URL: https://build.ci.opensearch.org/job/gradle-check/3390/
  • CommitID: 0240ff05f77a2680aace54c7a5c0fdb6707434ae

github-actions[bot] avatar Sep 26 '22 07:09 github-actions[bot]

Gradle Check (Jenkins) Run Completed with:

  • RESULT: SUCCESS :white_check_mark:
  • URL: https://build.ci.opensearch.org/job/gradle-check/3391/
  • CommitID: c8836b7f273d4016ac285d5f6b5022786993574f

github-actions[bot] avatar Sep 26 '22 07:09 github-actions[bot]

Gradle Check (Jenkins) Run Completed with:

  • RESULT: SUCCESS :white_check_mark:
  • URL: https://build.ci.opensearch.org/job/gradle-check/3398/
  • CommitID: 776306776a05570785c3a0b0e1ec0c8446e36efb

github-actions[bot] avatar Sep 26 '22 12:09 github-actions[bot]