Skip to content

CASSANALYTICS-180: TokenPartitioner fails to detect range gap in reader - #234

Open
mansikhara wants to merge 3 commits into
apache:trunkfrom
mansikhara:CASSANALYTICS-180
Open

CASSANALYTICS-180: TokenPartitioner fails to detect range gap in reader#234
mansikhara wants to merge 3 commits into
apache:trunkfrom
mansikhara:CASSANALYTICS-180

Conversation

@mansikhara

Copy link
Copy Markdown

No description provided.

@jyothsnakonisa jyothsnakonisa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Please add Changes.txt entry for this patch


RangeSet<BigInteger> uncovered = TreeRangeSet.create();
uncovered.add(fullRange);
coveringRanges.forEach(uncovered::remove);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
coveringRanges.forEach(uncovered::remove);
uncovered.removeAll(coveringRanges);

You could use removeAll instead of removing each entry in for loop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants