Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor and cleanup treatment of keyspace IDs and KeyRange #140

Closed
wants to merge 1 commit into from

Conversation

shanth96
Copy link

Address internal review comments

Fix apparent bug in KeyRangeContiguous when a or b are full-range

Add test for bug in comparing "0003" vs "000300"

Remove trailing zeroes in key.Normalize instead of adding padding

Address review feedback; test formatting, comments, function naming

Refactor tests for TestKeyRangesIntersect

Rename KeyRangesIntersect to KeyRangeIntersect for consistency

Remove unused KeyRangesOverlap function

Rename KeyRangeIncludes to KeyRangeContainsKeyRange, clean up and add tests

Description

Related Issue(s)

Checklist

  • "Backport to:" labels have been added if this change should be back-ported to release branches
  • If this change is to be back-ported to previous releases, a justification is included in the PR description
  • Tests were added or are not required
  • Did the new or modified tests pass consistently locally and on CI?
  • Documentation was added or is not required

Deployment Notes

Signed-off-by: Jeremy Cole <[email protected]>

Address internal review comments

Signed-off-by: Jeremy Cole <[email protected]>

Fix apparent bug in KeyRangeContiguous when a or b are full-range

Signed-off-by: Jeremy Cole <[email protected]>

Add test for bug in comparing "0003" vs "000300"

Signed-off-by: Hormoz Kheradmand <[email protected]>

Remove trailing zeroes in key.Normalize instead of adding padding

Signed-off-by: Jeremy Cole <[email protected]>

Address review feedback; test formatting, comments, function naming

Signed-off-by: Jeremy Cole <[email protected]>

Refactor tests for TestKeyRangesIntersect

Signed-off-by: Jeremy Cole <[email protected]>

Rename KeyRangesIntersect to KeyRangeIntersect for consistency

Signed-off-by: Jeremy Cole <[email protected]>

Remove unused KeyRangesOverlap function

Signed-off-by: Jeremy Cole <[email protected]>

Rename KeyRangeIncludes to KeyRangeContainsKeyRange, clean up and add tests

Signed-off-by: Jeremy Cole <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants