chia7712 commented on a change in pull request #8759:
URL: https://github.com/apache/kafka/pull/8759#discussion_r432919211
##########
File path:
streams/test-utils/src/main/java/org/apache/kafka/streams/TopologyTestDriver.java
##########
@@ -906,8 +906,8 @@ public void advanceWallClockTime(final Duration advance) {
if (record == null) {
throw new NoSuchElementException("Empty topic: " + topic);
}
- final K key = keyDeserializer.deserialize(record.topic(),
record.key());
- final V value = valueDeserializer.deserialize(record.topic(),
record.value());
+ final K key = keyDeserializer.deserialize(record.topic(),
record.headers(), record.key());
Review comment:
Nice finding!
https://github.com/apache/kafka/blob/trunk/streams/test-utils/src/main/java/org/apache/kafka/streams/TopologyTestDriver.java#L805
has similar issue. Should we fix it as well?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]