artemlivshits commented on code in PR #15559: URL: https://github.com/apache/kafka/pull/15559#discussion_r1535865337
########## 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: There are multiple errors that could could clients to retry produce request, we chose this one because it doesn't trigger metadata refresh. -- 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