brandboat commented on code in PR #20740:
URL: https://github.com/apache/kafka/pull/20740#discussion_r2450072217
##########
storage/src/main/java/org/apache/kafka/storage/internals/log/UnifiedLog.java:
##########
@@ -1364,6 +1364,7 @@ private AnalyzeAndValidateProducerStateResult
analyzeAndValidateProducerState(Lo
Optional<BatchMetadata> duplicateBatch =
maybeLastEntry.flatMap(e -> e.findDuplicateBatch(batch));
if (duplicateBatch.isPresent()) {
+ logger.info("Found duplicate batch from client,
duplicateBatchMetadata={}", duplicateBatch.get());
Review Comment:
@chia7712, thanks for the suggestion! Indeed, move the log.info to append
method seems better.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]