-
Notifications
You must be signed in to change notification settings - Fork 14.5k
[WIP] KAFKA-19012: Messages ending up on the wrong topic #20146
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
base: 3.7
Are you sure you want to change the base?
[WIP] KAFKA-19012: Messages ending up on the wrong topic #20146
Conversation
Adding instrumentation for KafkaProducer to detect when the topic a message was written to changes after it's enqueued.
…rs would be empty
Updated updateInconsistentTopics to accept the batch's TopicPartition and Records instead of passing in the ProducerBatch directly.
Introduces a dedicated class to perform instrumentation at points before decompression is required.
…ducer/internals/SenderMetricsRegistry.java
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.
@kirktrue : Thanks for the PR. LGTM. Just a minor comment. Also, could you resolve the conflicts?
@@ -127,6 +128,7 @@ public RecordAccumulator(LogContext logContext, | |||
Time time, | |||
ApiVersions apiVersions, | |||
TransactionManager transactionManager, | |||
Kafka19012Instrumentation kafka19012Instrumentation, |
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.
Could we add the javadoc?
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.
Done.
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.
Could you add the javadoc for the new param?
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.
Done.
…csRegistry.TOPIC_METRIC_GROUP_NAME
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.
@kirktrue : Thanks for the updated PR. Just a minor comment.
@@ -127,6 +128,7 @@ public RecordAccumulator(LogContext logContext, | |||
Time time, | |||
ApiVersions apiVersions, | |||
TransactionManager transactionManager, | |||
Kafka19012Instrumentation kafka19012Instrumentation, |
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.
Could you add the javadoc for the new param?
Adding instrumentation for
KafkaProducer
to detect when the topic a message was written to changes after it's enqueued.