showuon commented on a change in pull request #8712: URL: https://github.com/apache/kafka/pull/8712#discussion_r436446552
########## File path: clients/src/test/java/org/apache/kafka/clients/admin/MockAdminClient.java ########## @@ -330,6 +331,12 @@ synchronized public DescribeTopicsResult describeTopics(Collection<String> topic future.completeExceptionally(new UnknownTopicOrPartitionException("Topic " + requestedTopic + " not found.")); topicDescriptions.put(requestedTopic, future); } + // try to simulate the leader not available situation when topic name is "LeaderNotAvailableTopic" Review comment: Good suggestion. I put it as a constant. Thanks. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org