jlprat commented on code in PR #15002:
URL: https://github.com/apache/kafka/pull/15002#discussion_r1426418377
##########
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:
Added a method in `Batch` to describe it (without the records) and added
this info in the exception. Let me know if this works
--
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]