Jayteeps commented on code in PR #24078:
URL: https://github.com/apache/kafka/pull/24078#discussion_r4467079904
##########
tools/src/main/java/org/apache/kafka/tools/DumpLogSegments.java:
##########
@@ -789,6 +792,38 @@ protected JsonNode valueAsJson(ApiMessage message, short
version) {
}
}
+ // Package private for testing
+ static class MirrorStateMessageParser extends
CoordinatorRecordMessageParser {
+ public MirrorStateMessageParser() {
+ super(new MirrorCoordinatorRecordSerde());
+ }
+
+ @Override
+ protected JsonNode keyAsJson(ApiMessage message) {
+ return
org.apache.kafka.coordinator.mirror.generated.CoordinatorRecordJsonConverters
+ .writeRecordKeyAsJson(message);
+ }
+
+ @Override
+ protected JsonNode valueAsJson(ApiMessage message, short version) {
+ JsonNode json =
org.apache.kafka.coordinator.mirror.generated.CoordinatorRecordJsonConverters
Review Comment:
done
--
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]