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

Add retry policy to wait for job id to persist during rebalancing #13372

Merged

Conversation

tahaboty-stripe
Copy link
Contributor

@tahaboty-stripe tahaboty-stripe commented Jun 11, 2024

When rebalancing tables with a large number of segments, it takes a while for the jobId to persist in Zookeeper and polling for the jobId results in a ResourceNotFoundException, even though it would become available in a few seconds. This code aims to introduce a specific retry policy in order to counteract this. It forces a retry 3 times in order to check if the jobId has been found. If it still has not then the rebalance will fail.

Label: Bugfix

@tahaboty-stripe tahaboty-stripe marked this pull request as draft June 11, 2024 16:08
@tahaboty-stripe tahaboty-stripe marked this pull request as ready for review June 11, 2024 16:09
@jadami10
Copy link
Contributor

@Jackie-Jiang mind approving the workflow here when you have a chance

Copy link
Contributor

@Jackie-Jiang Jackie-Jiang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM otherwise

@codecov-commenter
Copy link

codecov-commenter commented Jun 13, 2024

Codecov Report

Attention: Patch coverage is 0% with 14 lines in your changes missing coverage. Please review.

Project coverage is 62.11%. Comparing base (59551e4) to head (237ce76).
Report is 618 commits behind head on master.

Files Patch % Lines
...oller/api/resources/PinotTableRestletResource.java 0.00% 14 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master   #13372      +/-   ##
============================================
+ Coverage     61.75%   62.11%   +0.36%     
+ Complexity      207      198       -9     
============================================
  Files          2436     2548     +112     
  Lines        133233   139971    +6738     
  Branches      20636    21728    +1092     
============================================
+ Hits          82274    86945    +4671     
- Misses        44911    46436    +1525     
- Partials       6048     6590     +542     
Flag Coverage Δ
custom-integration1 <0.01% <0.00%> (-0.01%) ⬇️
integration <0.01% <0.00%> (-0.01%) ⬇️
integration1 <0.01% <0.00%> (-0.01%) ⬇️
integration2 0.00% <0.00%> (ø)
java-11 62.06% <0.00%> (+0.35%) ⬆️
java-21 62.00% <0.00%> (+0.38%) ⬆️
skip-bytebuffers-false 62.08% <0.00%> (+0.33%) ⬆️
skip-bytebuffers-true 61.98% <0.00%> (+34.25%) ⬆️
temurin 62.11% <0.00%> (+0.36%) ⬆️
unittests 62.11% <0.00%> (+0.36%) ⬆️
unittests1 46.71% <ø> (-0.19%) ⬇️
unittests2 27.71% <0.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

tahaboty-stripe and others added 2 commits June 14, 2024 09:15
…/resources/PinotTableRestletResource.java

Co-authored-by: Xiaotian (Jackie) Jiang <[email protected]>
@Jackie-Jiang Jackie-Jiang merged commit abaf3c8 into apache:master Jun 18, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants