ivankelly commented on a change in pull request #664: Recycle PendingAddOps
URL: https://github.com/apache/bookkeeper/pull/664#discussion_r147337125
 
 

 ##########
 File path: 
bookkeeper-server/src/main/java/org/apache/bookkeeper/client/RoundRobinDistributionSchedule.java
 ##########
 @@ -62,10 +62,11 @@ public RoundRobinDistributionSchedule(int writeQuorumSize, 
int ackQuorumSize, in
 
     @Override
     public void getWriteSet(long entryId, int[] target) {
-        if (target.length != writeQuorumSize) {
 
 Review comment:
   Because as PendingAddOps get reused, a PendingAddOp with a writeSet of size 
5 may get used with a ledger that needs a writeSet of size 3.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to