-
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
Exposing consumer's record lag in /consumingSegmentsInfo #9515
Conversation
Codecov Report
@@ Coverage Diff @@
## master #9515 +/- ##
============================================
- Coverage 70.03% 63.78% -6.26%
+ Complexity 5288 4952 -336
============================================
Files 1937 1889 -48
Lines 103498 101377 -2121
Branches 15715 15453 -262
============================================
- Hits 72487 64660 -7827
- Misses 25907 31986 +6079
+ Partials 5104 4731 -373
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
minor comments only, looking good!
pinot-common/src/main/java/org/apache/pinot/common/restlet/resources/SegmentConsumerInfo.java
Outdated
Show resolved
Hide resolved
...ller/src/main/java/org/apache/pinot/controller/api/resources/PinotRealtimeTableResource.java
Outdated
Show resolved
Hide resolved
.../src/main/java/org/apache/pinot/core/data/manager/realtime/LLRealtimeSegmentDataManager.java
Outdated
Show resolved
Hide resolved
pinot-controller/src/main/java/org/apache/pinot/controller/util/ConsumingSegmentInfoReader.java
Outdated
Show resolved
Hide resolved
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.
lgtm!
we need to mark this backward incompat because of the partitionToOffset map being removed? should we keep it around and deprecate it first?
Strictly speaking, this is considered backward incompat. But how do you "deprecate" an API response alone? |
all we can do is just mark it deprecated in the java class for devs, and callout in release notes for users in next release. and in release after that we can remove it. we could also add it as API notes so it appears in swagger? |
…r side; continue from here
Wrapped maps into an object
Re-work of the PR : #8280
Changes in this PR:
/consumingSegmentsInfo
API was moved intoPinotRealtimeTableResource
.StreamMetadataProvider#getCurrentPartitionLagState
NOT_CALCULATED
for these new lag statusPartitionLagState
interface to return more custom lag definitionsThings to be addressed in a follow-up PR: