CASSANALYTICS-180: TokenPartitioner fails to detect range gap in reader - #234
CASSANALYTICS-180: TokenPartitioner fails to detect range gap in reader#234mansikhara wants to merge 4 commits into
Conversation
jyothsnakonisa
left a comment
There was a problem hiding this comment.
Looks good! Please add Changes.txt entry for this patch
|
|
||
| RangeSet<BigInteger> uncovered = TreeRangeSet.create(); | ||
| uncovered.add(fullRange); | ||
| coveringRanges.forEach(uncovered::remove); |
There was a problem hiding this comment.
| coveringRanges.forEach(uncovered::remove); | |
| uncovered.removeAll(coveringRanges); |
You could use removeAll instead of removing each entry in for loop
|
Sorry for the belated review. First of all, thanks for adding more test cases. I think the fix can be much smaller than what's here. The actual bug is just that The minimal and correct fix is:
Would you mind trimming the patch down to that? |
There was a problem hiding this comment.
We should really consolidate the two TokenPartitioners, some day... Not in scope for this patch, I am just mentioning.
No description provided.