Open benfleis opened 8 years ago
@CorgiMan Recently found the same. Although the fix is simple it is hard to deploy to running systems without a lot of forwarding inconsistencies. The moment you start upgrading your system after such a fix there will be disagreement on key ownership till the upgrade has completely completed.
Since the chances of such port configurations are slim in our current situation it might break more than it solves.
Replica points are added by concatenation onto the server name, which is currently of the form
a.b.c.d:X
. If you havea=1.2.3.4:55
andb=1.2.3.4:555
, you will have some overlap, e.g. with replica points 5 and 55, respectively, wherea + '55' === b + '5'
, and therefore hash identically.This is probably an atypical configuration, and probably not a major concern, but as we consider a future with logical IDs, this could become a bigger of a potential question mark.
Probably the simplest thing is simply to insert '/' or '#' in between. In any consistent naming scheme, this would make all points unique.
Some trivial code to demonstrate this is below -- no matter how much you adjust the offset, 's1:11' is always underrepresented.