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

KafkaSinkCluster: Improve unknown topic warnings #1629

Merged
merged 3 commits into from
May 21, 2024

Conversation

rukai
Copy link
Member

@rukai rukai commented May 17, 2024

When we attempt to route a fetch request for which we have no record of its topic we issue a warning since it is impossible to route correctly.
We were previously including the topic name (topic field) in the warning but the kafka protocol has deprecated the topic name in favor of the topic uuid (topic_id field) .
This was resulting in warnings that look like:
no known partition replica for topic "", routing message to a random node so that a NOT_LEADER_OR_FOLLOWER or similar error is returned to the client
So this PR now uses the topic name if provided and fallsback to the topic id when needed.

Copy link

codspeed-hq bot commented May 17, 2024

CodSpeed Performance Report

Merging #1629 will not alter performance

Comparing rukai:kafka_improve_unroutable_warnings (75693ae) with main (0461a88)

Summary

✅ 37 untouched benchmarks

@rukai rukai enabled auto-merge (squash) May 21, 2024 00:59
@rukai rukai merged commit 50b6301 into shotover:main May 21, 2024
41 checks passed
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.

None yet

4 participants