kirktrue commented on code in PR #21117:
URL: https://github.com/apache/kafka/pull/21117#discussion_r2908544947


##########
clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java:
##########
@@ -956,7 +955,10 @@ private void handleTimeoutFailure(long now, Throwable 
cause) {
                 log.debug("{} timed out at {} after {} attempt(s)", this, now, 
tries,
                     new Exception(prettyPrintException(cause)));
             }
-            if (cause instanceof TimeoutException) {
+            // Don't mask OutOfMemoryError as TimeoutException - propagate it 
directly
+            if (cause instanceof OutOfMemoryError) {

Review Comment:
   @iit2009060—Can you create that separate PR?



-- 
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]

Reply via email to