dajac commented on a change in pull request #11552: URL: https://github.com/apache/kafka/pull/11552#discussion_r770355018
########## File path: clients/src/test/java/org/apache/kafka/clients/MetadataTest.java ########## @@ -372,6 +372,30 @@ public void testUpdateLastEpoch() { assertOptional(metadata.lastSeenLeaderEpoch(tp), leaderAndEpoch -> assertEquals(leaderAndEpoch.intValue(), 12)); } + @Test + public void testEpochUpdateAfterTopicDeletion() { + TopicPartition tp = new TopicPartition("topic-1", 0); + + MetadataResponse metadataResponse = emptyMetadataResponse(); + metadata.updateWithCurrentRequestVersion(metadataResponse, false, 0L); + + Map<String, Uuid> topicIds = Collections.singletonMap("topic-1", Uuid.randomUuid()); Review comment: nit: We could have kept the comment before the block to be consistent with the other two blocks. I just wanted to rework it a bit. -- 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