sijie commented on a change in pull request #657: DistributionSchedule uses
int[] rather than HashSet
URL: https://github.com/apache/bookkeeper/pull/657#discussion_r147247635
##########
File path:
bookkeeper-server/src/main/java/org/apache/bookkeeper/client/RoundRobinDistributionSchedule.java
##########
@@ -136,6 +221,7 @@ public QuorumCoverageSet getCoverageSet() {
@Override
public boolean hasEntry(long entryId, int bookieIndex) {
- return getWriteSet(entryId).contains(bookieIndex);
+ int[] set = writeSets[(int) (entryId % ensembleSize)];
Review comment:
I think this can be further improved. because it is just checking whether an
entry is supposed to be stored in one bookie. I think we can simply calculate
it.
----------------------------------------------------------------
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