smjn commented on code in PR #22851:
URL: https://github.com/apache/kafka/pull/22851#discussion_r3597042990
##########
tools/src/main/java/org/apache/kafka/tools/VerifiableConsumer.java:
##########
@@ -418,6 +421,15 @@ public long offset() {
return record.offset();
}
+ @JsonProperty
+ public Map<String, String> headers() {
+ Map<String, String> result = new LinkedHashMap<>();
+ for (Header header : record.headers()) {
+ result.put(header.key(), header.value() == null ? null : new
String(header.value(), StandardCharsets.UTF_8));
+ }
Review Comment:
looks legit - do you want to replace with a List of pairs instead?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]