consistent icon indicating copy to clipboard operation
consistent copied to clipboard

Potential collision between member name and replica ID

Open jakedt opened this issue 3 years ago • 0 comments

Replica names are created by smashing the member name and the replica number together.

https://github.com/buraksezer/consistent/blob/a1a9c4ab8d2da437ecbf64219cc0b6cf58639b7e/consistent.go#L250

Member names that end in numbers may collide with replicas of other members. For example, with member names of member and member1 with a ReplicationFactor of 11, there will be a collision with the 11th replica of member: member10 and the 1st replica of member1: member10.

jakedt avatar Aug 06 '21 19:08 jakedt