dongnuo123 commented on code in PR #24327:
URL: https://github.com/apache/kafka/pull/24327#discussion_r4667748601


##########
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorService.java:
##########
@@ -2745,6 +2744,39 @@ private OffsetFetchResponseData.OffsetFetchResponseGroup 
handleOffsetFetchExcept
         };
     }
 
+    /**
+     * This is the handler used by offset commit operations to convert errors 
to coordinator errors.
+     * The handler also handles and logs unexpected errors.
+     *
+     * @param operationName     The name of the operation.
+     * @param request           The request for logging purposes.
+     * @param exception         The exception to handle.
+     * @param handler           A function which takes an Errors and builds 
the response.
+     * @return The response built by the handler.
+     * @param <IN> The type of the request. It must be a toString'able object.
+     * @param <OUT> The type of the response.
+     */
+    private <IN, OUT> OUT handleOffsetCommitException(

Review Comment:
   Renamed them to `RequestData` and `ResponseData`. Didn't do the same for 
handleOperationException because it's also used for types other than request 
and response so I renamed them to Input and Output
   
   Since we already have `RequestData` and `ResponseData`, I'll leave the 3rd 
comment out



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