Skip to content

Fix issue with node selection at ring boundary#36

Merged
debasishg merged 1 commit intodebasishg:masterfrom
patriknw:wip-consistent-hash-improvements
Sep 8, 2012
Merged

Fix issue with node selection at ring boundary#36
debasishg merged 1 commit intodebasishg:masterfrom
patriknw:wip-consistent-hash-improvements

Conversation

@patriknw
Copy link

@patriknw patriknw commented Sep 8, 2012

  • The small problem was that it picked node counter clockwise
    in the ring for all, except for crc < firstKey, where it picked firstKey
    instead of lastKey
  • Changed to clockwise selection and correct selection
    at the boundary, i.e. crc > lastKey => firstKey
    and crc < firstKey => firstKey
  • Changed to TreeMap instead of the 2 separate TreeSet and Map
    collections

* The small problem was that it picked node counter clockwise
  in the ring for all, except for crc < firstKey, where it picked firstKey
  instead of lastKey
* Changed to clockwise selection and correct selection
  at the boundary, i.e. crc > lastKey => firstKey
  and crc < firstKey => firstKey
* Changed to TreeMap instead of the 2 separate TreeSet and Map
  collections
@ghost ghost assigned debasishg Sep 8, 2012
debasishg added a commit that referenced this pull request Sep 8, 2012
Fix issue with node selection at ring boundary
@debasishg debasishg merged commit 24ac8e5 into debasishg:master Sep 8, 2012
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