jolshan commented on code in PR #16840:
URL: https://github.com/apache/kafka/pull/16840#discussion_r1711939892


##########
clients/src/main/java/org/apache/kafka/clients/producer/internals/TransactionManager.java:
##########
@@ -1091,7 +1152,8 @@ private TxnRequestHandler 
addPartitionsToTransactionHandler() {
 
     private TxnOffsetCommitHandler 
txnOffsetCommitHandler(TransactionalRequestResult result,
                                                           Map<TopicPartition, 
OffsetAndMetadata> offsets,
-                                                          
ConsumerGroupMetadata groupMetadata) {
+                                                          
ConsumerGroupMetadata groupMetadata,

Review Comment:
   It seems like there are two very similar methods here. The only difference 
is the result passed in. I wonder if there is a way we could combine them. (Ie, 
pass the default result argument) 



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