-
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
Add getSelectedSegments API #7651
Conversation
...ler/src/main/java/org/apache/pinot/controller/api/resources/PinotSegmentRestletResource.java
Show resolved
Hide resolved
...ntroller/src/main/java/org/apache/pinot/controller/helix/core/PinotHelixResourceManager.java
Outdated
Show resolved
Hide resolved
bd0d4d1
to
4b0fa22
Compare
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.
Can you add some response examples to the PR message? Also, please double-check on the test.
Otherwise, LGTM
...ler/src/main/java/org/apache/pinot/controller/api/resources/PinotSegmentRestletResource.java
Show resolved
Hide resolved
4b0fa22
to
52171bf
Compare
52171bf
to
04de569
Compare
Codecov Report
@@ Coverage Diff @@
## master #7651 +/- ##
=============================================
- Coverage 71.75% 30.94% -40.81%
=============================================
Files 1576 1567 -9
Lines 79966 79684 -282
Branches 11843 11826 -17
=============================================
- Hits 57377 24661 -32716
- Misses 18730 52921 +34191
+ Partials 3859 2102 -1757
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Co-authored-by: Jack Li(Analytics Engineering) <[email protected]>
Description
This PR adds
getSelectedSegments
API inPinotSegmentRestletResource
class. This API is useful to get the segments which are used for serving queries (i.e. the set of segments that are used in routing table) given the start and end timestamps.If the table is a refresh use case, the value of start and end timestamp is voided, since there is no time column for refresh use case; instead, the whole qualified segments will be returned.
Upgrade Notes
Does this PR prevent a zero down-time upgrade? (Assume upgrade order: Controller, Broker, Server, Minion)
backward-incompat
, and complete the section below on Release Notes)Does this PR fix a zero-downtime upgrade introduced earlier?
backward-incompat
, and complete the section below on Release Notes)Does this PR otherwise need attention when creating release notes? Things to consider:
release-notes
and complete the section on Release Notes)Release Notes
Documentation