merlimat commented on a change in pull request #1808: Allow to configure sticky 
reads
URL: https://github.com/apache/bookkeeper/pull/1808#discussion_r233689136
 
 

 ##########
 File path: 
bookkeeper-server/src/main/java/org/apache/bookkeeper/client/PendingReadOp.java
 ##########
 @@ -96,13 +96,38 @@
             this.ensemble = ensemble;
             this.eId = eId;
 
+            long entryIdToConsiderForWriteSet = eId;
+
+            if (clientCtx.getConf().enableStickyReads
+                    && lh.getLedgerMetadata().getWriteQuorumSize() == 
lh.getLedgerMetadata().getEnsembleSize()) {
 
 Review comment:
   Sure, but reading of e-5 and e-6 will be anyway "wasted".

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to