chia7712 commented on code in PR #24320:
URL: https://github.com/apache/kafka/pull/24320#discussion_r4670990380
##########
metadata/src/main/java/org/apache/kafka/image/TopicImage.java:
##########
@@ -34,7 +36,16 @@
*
* This class is thread-safe.
*/
-public record TopicImage(String name, Uuid id, Map<Integer,
PartitionRegistration> partitions) {
+public record TopicImage(String name,
+ Uuid id,
+ String mirrorName,
+ byte desiredMirrorState,
+ Map<Integer, PartitionRegistration> partitions) {
+
+ public TopicImage(String name, Uuid id, Map<Integer,
PartitionRegistration> partitions) {
+ this(name, id, null, MirrorPartitionState.UNKNOWN.value(), partitions);
Review Comment:
It is a bit strange to me that we are using `UNKNOWN` to describe a topic
that is not mirrored. Could we add a specific state or just use
`Optional.empty` 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]