ijuma commented on code in PR #7283:
URL: https://github.com/apache/kafka/pull/7283#discussion_r850457061
##########
clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java:
##########
@@ -1032,18 +1032,13 @@ private ClusterAndWaitTime waitOnMetadata(String topic,
Integer partition, long
metadata.awaitUpdate(version, remainingWaitMs);
} catch (TimeoutException ex) {
// Rethrow with original maxWaitMs to prevent logging
exception with remainingWaitMs
- throw new TimeoutException(
- String.format("Topic %s not present in metadata after
%d ms.",
- topic, maxWaitMs));
+ throw timeoutForAbsentMetadata(topic, partition, maxWaitMs,
partitionsCount);
Review Comment:
Is it actually possible for this to be thrown when the partition is missing?
We only pass the topic to `metadata.requestUpdateForTopic`.
--
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]