Get last entry is trying to read entry -1
@@ -1480,6 +1480,7 @@ public class ServerCnx extends PulsarHandler {
.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.
