squah-confluent commented on code in PR #15559:
URL: https://github.com/apache/kafka/pull/15559#discussion_r1535903580


##########
core/src/main/scala/kafka/server/ReplicaManager.scala:
##########
@@ -830,7 +830,11 @@ class ReplicaManager(val config: KafkaConfig,
           val customException =
             error match {
               case Errors.INVALID_TXN_STATE => Some(error.exception("Partition 
was not added to the transaction"))
+              // Transaction verification can fail with a retriable error that 
older clients may not
+              // retry correctly. Translate these to `NOT_ENOUGH_REPLICAS`, 
which will cause such
+              // clients to retry the produce request.

Review Comment:
   I've updated the comment. Let me know if it looks okay now.



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