showuon commented on code in PR #15002:
URL: https://github.com/apache/kafka/pull/15002#discussion_r1426402498


##########
raft/src/main/java/org/apache/kafka/snapshot/RecordsSnapshotReader.java:
##########
@@ -62,12 +62,7 @@ public int lastContainedLogEpoch() {
     public long lastContainedLogTimestamp() {
         if (!lastContainedLogTimestamp.isPresent()) {
             nextBatch.ifPresent(batch -> {
-                throw new IllegalStateException(
-                    String.format(
-                        "nextBatch was present when last contained log 
timestamp was not present",
-                        batch
-                    )
-                );
+                throw new IllegalStateException("nextBatch was present when 
last contained log timestamp was not present");

Review Comment:
   No need. 



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