artemlivshits commented on code in PR #18604:
URL: https://github.com/apache/kafka/pull/18604#discussion_r1920908747


##########
core/src/main/scala/kafka/log/UnifiedLog.scala:
##########
@@ -1052,7 +1057,7 @@ class UnifiedLog(@volatile var logStartOffset: Long,
   }
 
   private def batchMissingRequiredVerification(batch: MutableRecordBatch, 
requestVerificationGuard: VerificationGuard): Boolean = {
-    
producerStateManager.producerStateManagerConfig().transactionVerificationEnabled()
 && !batch.isControlBatch &&
+    
producerStateManager.producerStateManagerConfig().transactionVerificationEnabled()
 &&

Review Comment:
   What's the reason to move the check for control batch out of this function?



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