You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "hachikuji (via GitHub)" <gi...@apache.org> on 2024/01/03 22:41:50 UTC
Re: [PR] KAFKA-15987: Refactor ReplicaManager code for transaction verification [kafka]
hachikuji commented on code in PR #15087:
URL: https://github.com/apache/kafka/pull/15087#discussion_r1441051073
##########
core/src/main/scala/kafka/server/ReplicaManager.scala:
##########
@@ -749,9 +749,11 @@ class ReplicaManager(val config: KafkaConfig,
* @param responseCallback callback for sending the response
* @param delayedProduceLock lock for the delayed actions
* @param recordValidationStatsCallback callback for updating stats on record conversions
- * @param requestLocal container for the stateful instances scoped to this request
- * @param transactionalId transactional ID if the request is from a producer and the producer is transactional
+ * @param requestLocal container for the stateful instances scoped to this request -- this must correspond to the
+ * thread calling this method
* @param actionQueue the action queue to use. ReplicaManager#defaultActionQueue is used by default.
+ * @param verificationGuards the mapping from topic partition to verification guards if transaction verification is used
+ * @param preAppendErrors the mapping from topic partition to LogAppendResult for errors that occurred before appending
Review Comment:
This seems a little strange. If the partitions have already failed, then why do we need to pass them through `appendRecords`? I would expect instead that the caller would just join the pre-append failures with the append failures.
--
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-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org