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

Add fetch records metric #1455

Merged
merged 3 commits into from
May 26, 2021

Conversation

mmaslankaprv
Copy link
Member

Cover letter

Correctly updating fetch records metric.

Fixes: #1288

Release notes

  • fetched records metric should be correctly updated

@mmaslankaprv mmaslankaprv requested a review from a team as a code owner May 24, 2021 05:53
@mmaslankaprv mmaslankaprv requested review from BenPope and graphcareful and removed request for a team May 24, 2021 05:53
BenPope
BenPope previously approved these changes May 24, 2021
Copy link
Member

@BenPope BenPope left a comment

Choose a reason for hiding this comment

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

LGTM

src/v/cluster/partition.h Outdated Show resolved Hide resolved
Copy link
Member

@dotnwat dotnwat left a 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.

src/v/cluster/partition.h Outdated Show resolved Hide resolved
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>
Copy link
Contributor

@graphcareful graphcareful left a comment

Choose a reason for hiding this comment

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

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

vectorized_cluster_partition_records_fetched isn't updated
5 participants