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


##########
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/runtime/PartitionWriter.java:
##########
@@ -116,4 +120,21 @@ long appendEndTransactionMarker(
         int coordinatorEpoch,
         TransactionResult result
     ) throws KafkaException;
+
+    /**
+     * Verify the transaction.
+     *
+     * @param tp                The partition to write records to.
+     * @param transactionalId   The transactional id.
+     * @param producerId        The producer id.
+     * @param producerEpoch     The producer epoch.
+     * @return A future containing the {@link VerificationGuard} or an 
exception.

Review Comment:
   There is one case where I think we still throw an error even if the 
partition is already verified. When we look up the partition to see if it needs 
verification, we could throw an error if the partition isn't on the broker. Not 
a huge deal though and we probably don't need to include.
   
   But an alternate description could be something like it returns any error 
encountered or the verification guard if it needed verification and the 
sentinel if it did not.



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