jlprat commented on code in PR #15002:
URL: https://github.com/apache/kafka/pull/15002#discussion_r1426400712
##########
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:
Shall we print a `.toString` of the `batch`?
--
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]