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

Refactor BalancedAllocator.Balancer to LocalShardsBalancer (#4761) #4818

Merged

Conversation

kotwanikunal
Copy link
Member

  • Refactor BalancedAllocator.Balancer to LocalShardsBalancer

Signed-off-by: Kunal Kotwani [email protected]

  • Deprecate Balancer to maintain BWC

Signed-off-by: Kunal Kotwani [email protected]

Signed-off-by: Kunal Kotwani [email protected]
(cherry picked from commit 1d65485)

Description

Issues Resolved

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.

@kotwanikunal kotwanikunal requested review from a team and reta as code owners October 17, 2022 23:40
@codecov-commenter
Copy link

Codecov Report

Merging #4818 (1d65485) into 2.x (a90fd73) will increase coverage by 0.14%.
The diff coverage is 55.02%.

❗ Current head 1d65485 differs from pull request most recent head 7896384. Consider uploading reports for the commit 7896384 to get more accurate results

@@             Coverage Diff              @@
##                2.x    #4818      +/-   ##
============================================
+ Coverage     70.62%   70.76%   +0.14%     
- Complexity    57126    57926     +800     
============================================
  Files          4585     4689     +104     
  Lines        274526   277306    +2780     
  Branches      40233    40370     +137     
============================================
+ Hits         193876   196234    +2358     
- Misses        64403    64822     +419     
- Partials      16247    16250       +3     
Impacted Files Coverage Δ
...ark/time/NanoTimeVsCurrentTimeMillisBenchmark.java 0.00% <0.00%> (ø)
...nsearch/gradle/precommit/LicenseHeadersTask.groovy 0.00% <ø> (ø)
.../java/org/opensearch/gradle/JdkDownloadPlugin.java 37.36% <0.00%> (ø)
...org/opensearch/gradle/RepositoriesSetupPlugin.java 38.63% <0.00%> (ø)
...ensearch/gradle/precommit/FilePermissionsTask.java 78.78% <ø> (ø)
...search/gradle/precommit/ForbiddenPatternsTask.java 88.40% <ø> (ø)
...g/opensearch/gradle/precommit/LoggerUsageTask.java 0.00% <ø> (ø)
...ensearch/gradle/precommit/ThirdPartyAuditTask.java 0.00% <0.00%> (ø)
...ensearch/gradle/tar/SymbolicLinkPreservingTar.java 0.00% <0.00%> (ø)
...a/org/opensearch/gradle/test/DistroTestPlugin.java 0.00% <ø> (ø)
... and 991 more

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

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@kotwanikunal
Copy link
Member Author

> Task :qa:mixed-cluster:v2.3.1#mixedClusterTest FAILED
build complete, generating: /var/jenkins/workspace/gradle-check/search/build/4830.tar.bz2

FAILURE: Build failed with an exception.

Task :qa:mixed-cluster:v2.3.1#mixedClusterTest FAILED failing for all with different errors. Retrying a final time.

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@kotwanikunal
Copy link
Member Author

Unrelated failure again:

Tests with failures:
 - org.opensearch.index.fielddata.SortedSetDVStringFieldDataTests.testSortMissingLast
 - ```

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@kotwanikunal
Copy link
Member Author

🤦


FAILURE: Build failed with an exception.

* What went wrong:
Java heap space

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

…h-project#4761)

* Refactor BalancedAllocator.Balancer to LocalShardsBalancer

Signed-off-by: Kunal Kotwani <[email protected]>

* Deprecate Balancer to maintain BWC

Signed-off-by: Kunal Kotwani <[email protected]>

Signed-off-by: Kunal Kotwani <[email protected]>
(cherry picked from commit 1d65485)
Signed-off-by: Kunal Kotwani <[email protected]>
@kotwanikunal kotwanikunal force-pushed the backport/backport-4761-to-2.x branch from 7896384 to 1ede0c2 Compare October 19, 2022 21:36
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@andrross andrross merged commit 785e4a6 into opensearch-project:2.x Oct 19, 2022
@kotwanikunal kotwanikunal deleted the backport/backport-4761-to-2.x branch October 19, 2022 22:28
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