chirag-wadhwa5 commented on code in PR #21001:
URL: https://github.com/apache/kafka/pull/21001#discussion_r2567717717


##########
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/NetworkPartitionMetadataClient.java:
##########
@@ -231,11 +265,13 @@ private boolean 
maybeHandleErrorResponse(Map<TopicPartition, CompletableFuture<O
             log.error("Version mismatch exception", 
clientResponse.versionMismatch());
             error = Errors.UNKNOWN_SERVER_ERROR;
         } else if (clientResponse.wasDisconnected()) {
-            log.error("Response for ListOffsets for TopicPartitions: {} was 
disconnected - {}.", partitionFutures.keySet(), clientResponse);
+            log.warn("Response for ListOffsets for TopicPartitions: {} was 
disconnected - {}.", partitionFutures.keySet(), clientResponse);
             error = Errors.NETWORK_EXCEPTION;
+            shouldRetry = true;
         } else if (clientResponse.wasTimedOut()) {
-            log.error("Response for ListOffsets for TopicPartitions: {} timed 
out - {}.", partitionFutures.keySet(), clientResponse);
+            log.warn("Response for ListOffsets for TopicPartitions: {} timed 
out - {}.", partitionFutures.keySet(), clientResponse);

Review Comment:
   Thanks for the review. Maybe I'll change it to debug.



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