kkonstantine commented on a change in pull request #9627: URL: https://github.com/apache/kafka/pull/9627#discussion_r618521825
########## File path: clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractCoordinator.java ########## @@ -1023,9 +1023,14 @@ protected void close(Timer timer) { } /** + * Leaving the group. This method also sends LeaveGroupRequest and log {@code leaveReason} if this is dynamic members + * or unknown coordinator or state is not UNJOINED or this generation has a valid member id. + * + * @param leaveReason the reason to leave the group for logging + * @param shouldWarn should log as WARN level or INFO * @throws KafkaException if the rebalance callback throws exception */ - public synchronized RequestFuture<Void> maybeLeaveGroup(String leaveReason) { + public synchronized RequestFuture<Void> maybeLeaveGroup(String leaveReason, boolean shouldWarn) throws KafkaException { Review comment: `KafkaException` is a runtime exception and therefore should only be included in the javadoc. In the method signature we include checked exceptions. ########## File path: clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractCoordinator.java ########## @@ -1051,6 +1061,10 @@ protected void close(Timer timer) { return future; } + public synchronized RequestFuture<Void> maybeLeaveGroup(String leaveReason) throws KafkaException { Review comment: same here -- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org