merlimat commented on a change in pull request #1808: Allow to configure sticky reads URL: https://github.com/apache/bookkeeper/pull/1808#discussion_r233677979
########## File path: bookkeeper-server/src/main/java/org/apache/bookkeeper/conf/ClientConfiguration.java ########## @@ -1135,6 +1136,34 @@ public ClientConfiguration setReorderReadSequenceEnabled(boolean enabled) { return this; } + /** + * If read operation should be sticky to a single bookie or not. + * + * @return true if reorder read sequence is enabled, otherwise false. + */ + public boolean isStickyReadsEnabled() { Review comment: > can it be a per read request flag rather than per client? @dlg99 It could work on per-request as long as the mechanism works across multiple requests. Eg: `read(0, 99)` and `read(100, 199)`, all the 200 requests should go to same bookie. ---------------------------------------------------------------- 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