chia7712 commented on code in PR #21080:
URL: https://github.com/apache/kafka/pull/21080#discussion_r3655685820
##########
clients/src/main/java/org/apache/kafka/clients/Metadata.java:
##########
@@ -633,6 +636,8 @@ public synchronized void maybeThrowExceptionForTopic(String
topic) {
}
private void clearErrorsAndMaybeThrowException(Supplier<KafkaException>
recoverableExceptionSupplier) {
+ if (bootstrapFatalException != null)
Review Comment:
Could you reuse `maybeThrowBootstrapFatalException`?
##########
clients/src/main/java/org/apache/kafka/clients/Metadata.java:
##########
@@ -616,6 +617,8 @@ public synchronized void maybeThrowAnyException() {
* in the last metadata update.
*/
protected synchronized void maybeThrowFatalException() {
+ if (bootstrapFatalException != null)
Review Comment:
Could you reuse `maybeThrowBootstrapFatalException`?
--
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]