CalvinConfluent commented on code in PR #18708:
URL: https://github.com/apache/kafka/pull/18708#discussion_r1931365155


##########
metadata/src/main/java/org/apache/kafka/image/TopicsDelta.java:
##########
@@ -94,6 +97,25 @@ public void replay(PartitionChangeRecord record) {
         topicDelta.replay(record);
     }
 
+    public void replay(ClearElrRecord record) {
+        if (!record.topicName().isEmpty()) {
+            Uuid topicId;
+            if (image.getTopic(record.topicName()) != null) {
+                topicId = image.getTopic(record.topicName()).id();
+            } else {
+                topicId = createdTopics.get(record.topicName());

Review Comment:
   Makes sense. Added the RuntimeException and tests.



-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to