-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Conversation
Codecov Report
@@ 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
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 20 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@@ -665,7 +665,7 @@ public ServerReloadControllerJobStatusResponse getReloadJobStatus( | |||
serverToSegments.put(server, segmentList); | |||
}); | |||
} else { | |||
serverToSegments = _pinotHelixResourceManager.getServerToSegmentsMap(tableNameWithType); | |||
serverToSegments = _pinotHelixResourceManager.getServerToOnlineSegmentsMap(tableNameWithType); |
There was a problem hiding this comment.
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
- zk segment_cnt
- zk online_segment_cnt
- SUM(segment_cnt) from each server
- 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
merging this one first. we will continue discussion on #11785 |
reloadStatus should only count reloadable segments (ONLINE & CONUSMING) and exclude OFFLINE segments in ideal state.