dajac commented on code in PR #12886: URL: https://github.com/apache/kafka/pull/12886#discussion_r1067000027
########## core/src/main/scala/kafka/server/KafkaApis.scala: ########## @@ -411,137 +411,144 @@ class KafkaApis(val requestChannel: RequestChannel, /** * Handle an offset commit request */ - def handleOffsetCommitRequest(request: RequestChannel.Request, requestLocal: RequestLocal): Unit = { - val header = request.header + def handleOffsetCommitRequest( + request: RequestChannel.Request, + requestLocal: RequestLocal + ): CompletableFuture[Unit] = { val offsetCommitRequest = request.body[OffsetCommitRequest] - val unauthorizedTopicErrors = mutable.Map[TopicPartition, Errors]() - val nonExistingTopicErrors = mutable.Map[TopicPartition, Errors]() - // the callback for sending an offset commit response - def sendResponseCallback(commitStatus: Map[TopicPartition, Errors]): Unit = { - val combinedCommitStatus = commitStatus ++ unauthorizedTopicErrors ++ nonExistingTopicErrors - if (isDebugEnabled) - combinedCommitStatus.forKeyValue { (topicPartition, error) => - if (error != Errors.NONE) { - debug(s"Offset commit request with correlation id ${header.correlationId} from client ${header.clientId} " + - s"on partition $topicPartition failed due to ${error.exceptionName}") - } Review Comment: We have removed all those debug logs in the previous PRs because the request log gives us the same in the end. -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org