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 log if process fetch takes more than replicaLagTimeMaxMs #474

Merged
merged 1 commit into from
Aug 16, 2023

Conversation

CCisGG
Copy link

@CCisGG CCisGG commented Aug 16, 2023

LI_DESCRIPTION = LIKAFKA-54083
EXIT_CRITERIA = N/A

Description

In the recent investigation of produce latency, we found there are strong relationship between produce latency and truncateAndFetch latency. However, it's hard to find why the truncateAndFetch can reach that high, and which partitions are causing the high truncateAndFetch latency.

Screenshot 2023-08-10 at 3 05 45 PM

In this PR, we passed through the replicaMaxLagMs config all the way to Fetcher thread, and log the fetch request if it takes longer than it. This could be very helpful for the produce latency investigation.

@CCisGG CCisGG merged commit ed9b33c into 3.0-li Aug 16, 2023
25 checks passed
@CCisGG CCisGG deleted the 20230816_logs branch August 16, 2023 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants