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

reloadStatus should only count online segments #11787

Merged
merged 1 commit into from
Oct 13, 2023

Conversation

walterddr
Copy link
Contributor

@walterddr walterddr commented Oct 11, 2023

reloadStatus should only count reloadable segments (ONLINE & CONUSMING) and exclude OFFLINE segments in ideal state.

@codecov-commenter
Copy link

codecov-commenter commented Oct 11, 2023

Codecov Report

Merging #11787 (55f7dfb) into master (7124a03) will increase coverage by 0.00%.
Report is 1 commits behind head on master.
The diff coverage is 0.00%.

@@            Coverage Diff            @@
##             master   #11787   +/-   ##
=========================================
  Coverage     63.11%   63.12%           
- Complexity     1117     1118    +1     
=========================================
  Files          2342     2342           
  Lines        125996   126010   +14     
  Branches      19378    19382    +4     
=========================================
+ Hits          79528    79540   +12     
- Misses        40804    40809    +5     
+ Partials       5664     5661    -3     
Flag Coverage Δ
integration <0.01% <0.00%> (ø)
integration1 <0.01% <0.00%> (ø)
integration2 0.00% <0.00%> (ø)
java-11 63.05% <0.00%> (-0.01%) ⬇️
java-17 62.94% <0.00%> (-0.01%) ⬇️
java-20 62.97% <0.00%> (-0.01%) ⬇️
temurin 63.12% <0.00%> (+<0.01%) ⬆️
unittests 63.11% <0.00%> (+<0.01%) ⬆️
unittests1 67.26% <ø> (+0.02%) ⬆️
unittests2 14.46% <0.00%> (-0.02%) ⬇️

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

Files Coverage Δ
...ler/api/resources/PinotSegmentRestletResource.java 16.02% <0.00%> (ø)
...ntroller/helix/core/PinotHelixResourceManager.java 63.31% <0.00%> (-0.16%) ⬇️

... and 20 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@walterddr walterddr marked this pull request as ready for review October 12, 2023 02:12
@@ -665,7 +665,7 @@ public ServerReloadControllerJobStatusResponse getReloadJobStatus(
serverToSegments.put(server, segmentList);
});
} else {
serverToSegments = _pinotHelixResourceManager.getServerToSegmentsMap(tableNameWithType);
serverToSegments = _pinotHelixResourceManager.getServerToOnlineSegmentsMap(tableNameWithType);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

i was actually thinking whether we should do 4 counts

  1. zk segment_cnt
  2. zk online_segment_cnt
  3. SUM(segment_cnt) from each server
  4. SUM(success_cnt) from each server

the logic to return success or failure will be based off 3==4, but if 3 != 2 we should do a warning. thoughts @Jackie-Jiang

@walterddr walterddr merged commit 1698937 into apache:master Oct 13, 2023
19 checks passed
@walterddr
Copy link
Contributor Author

merging this one first. we will continue discussion on #11785

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