fvaleri commented on code in PR #24320:
URL: https://github.com/apache/kafka/pull/24320#discussion_r4645457180
##########
metadata/src/main/java/org/apache/kafka/image/TopicImage.java:
##########
@@ -48,6 +59,12 @@ public void write(ImageWriter writer, ImageWriterOptions
options) {
PartitionRegistration partition = entry.getValue();
writer.write(partition.toRecord(id, partitionId, options));
}
+ if (mirrorName != null) {
+ writer.write(0, new MirrorTopicStateChangeRecord().
+ setTopicName(name).
+ setMirrorName(mirrorName).
+ setDesiredState(desiredMirrorState));
+ }
Review Comment:
This is correct, but should we move this before partition records to group
topic-level metadata together?
--
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]