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


##########
clients/src/main/java/org/apache/kafka/clients/producer/internals/TransactionManager.java:
##########
@@ -1328,7 +1328,7 @@ Priority priority() {
         @Override
         public void handleResponse(AbstractResponse response) {
             AddPartitionsToTxnResponse addPartitionsToTxnResponse = 
(AddPartitionsToTxnResponse) response;
-            Map<TopicPartition, Errors> errors = 
addPartitionsToTxnResponse.errors();
+            Map<TopicPartition, Errors> errors = 
addPartitionsToTxnResponse.errors().get(AddPartitionsToTxnResponse.V3_AND_BELOW_TXN_ID);

Review Comment:
   I was told not to have v3 and below specific methods from Jason because the 
v3 case should generalize to a single version of the v4 case and that should 
make it easy to use methods for both.
   
   However, if we really think this is an issue. I guess we can change the 
approach again. I'm just not sure the experience of errors only applying to 
v4+. Any ideas there besides changing the method name to express it should only 
be used in v4+?
   



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

Reply via email to