Description
In AdminClient#describeTopics, we have the following logic:
if (!cluster.topics().contains(topicName)) { future.completeExceptionally(new InvalidTopicException("Topic " + topicName + " not found.")); continue; }
However, InvalidTopicException is a non-retriable exception and is used to indicate that topic contains invalid chars or topic name is too long etc, and hence not correct to use. We should, instead, throw the retriable UnknownTopicOrPartitionException instead.
We should make sure any callers on this logic should be cleaned up when fixing it.
Attachments
Issue Links
- links to