Skip to content

Commit

Permalink
Get last entry is trying to read entry -1 (apache#7495)
Browse files Browse the repository at this point in the history
  • Loading branch information
merlimat authored Jul 10, 2020
1 parent 9f9db24 commit d8fd8ea
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1480,6 +1480,7 @@ private void getLargestBatchIndexWhenPossible(
.setPartition(partitionIndex).build();

ctx.writeAndFlush(Commands.newGetLastMessageIdResponse(requestId, messageId));
return;
}

// For a valid position, we read the entry out and parse the batch size from its metadata.
Expand Down

0 comments on commit d8fd8ea

Please sign in to comment.