forked from apache/kafka
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KAFKA-12297: Make MockProducer return RecordMetadata with values as p…
…er contract This is a simple change to MockProducer as per request in KAFKA-12297. MockProducer currently returns a null RecordMetadata on Exception. The fix will make MockProducer return the right value as per specification. This only impacts clients which use send with a custom callback and try to then use the RecordMetadata inspite of getting an exception. This should mostly impact customer unit and integration tests as the mock end point was never intended for use in a real Kafka cluster. Author: Akhilesh Dubey <adubey@confluent.io> Author: Manikumar Reddy <manikumar.reddy@gmail.com> Reviewers: Manikumar Reddy <manikumar.reddy@gmail.com> Closes apache#10110 from aadubey/trunk
- Loading branch information
Showing
2 changed files
with
28 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters