-
Notifications
You must be signed in to change notification settings - Fork 593
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 fetch records metric #1455
Add fetch records metric #1455
Conversation
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
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.
looks good, but it's not clear why we need reference counting for the impl pointer. we should prefer unique pointer if possible.
Made `cluster::partition_probe` a class using PIMPL idiom to make it possible to provide different probe implementations for replicated and materialized partitions Signed-off-by: Michal Maslanka <michal@vectorized.io>
Record count calculation coming from fetch and produce Kafka APIs are done in Kafka layer. We have to provide a consistent way to access partition probe for both materialized and replicated partitions. Signed-off-by: Michal Maslanka <michal@vectorized.io>
Added missing update of partition probe with number of records fetched. Fixes: redpanda-data#1288 Signed-off-by: Michal Maslanka <michal@vectorized.io>
577bb89
to
699790d
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.
lgtm
Cover letter
Correctly updating fetch records metric.
Fixes: #1288
Release notes