zymap commented on code in PR #4177:
URL: https://github.com/apache/bookkeeper/pull/4177#discussion_r1454395114
##########
bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/BookieProtoEncoding.java:
##########
@@ -181,6 +204,21 @@ public Object decode(ByteBuf packet)
} else {
return BookieProtocol.ReadRequest.create(version,
ledgerId, entryId, flags, null);
}
+ case BookieProtocol.BATCH_READ_ENTRY:
+ ledgerId = packet.readLong();
+ entryId = packet.readLong();
+ long requestId = packet.readLong();
+ int maxCount = packet.readInt();
+ long maxSize = packet.readLong();
+ if ((flags & BookieProtocol.FLAG_DO_FENCING) ==
BookieProtocol.FLAG_DO_FENCING
Review Comment:
FENCING is a special reading that will fence the ledger, and no more write
allowed; will it allow in the batch read?
--
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]