dajac commented on code in PR #14402:
URL: https://github.com/apache/kafka/pull/14402#discussion_r1331095065


##########
core/src/main/scala/kafka/server/AddPartitionsToTxnManager.scala:
##########
@@ -63,7 +73,42 @@ class AddPartitionsToTxnManager(config: KafkaConfig, client: 
NetworkClient, time
   val verificationFailureRate = 
metricsGroup.newMeter(VerificationFailureRateMetricName, "failures", 
TimeUnit.SECONDS)
   val verificationTimeMs = 
metricsGroup.newHistogram(VerificationTimeMsMetricName)
 
-  def addTxnData(node: Node, transactionData: AddPartitionsToTxnTransaction, 
callback: AddPartitionsToTxnManager.AppendCallback): Unit = {
+  def addTxnData(
+    transactionalId: String,
+    producerId: Long,
+    producerEpoch: Short,
+    verifyOnly: Boolean,

Review Comment:
   Ah. That's right. I think that it is better to remove it in this case. 
Unused params are always bad...



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