Netflix / astyanax

Cassandra Java Client
Apache License 2.0
1.04k stars 355 forks source link

com.netflix.astyanax.connectionpool.Host does not obey hashCode equals contract #573

Open ghost opened 9 years ago

ghost commented 9 years ago

If I have two hosts [host(ip):port]: 127.0.0.1(127.0.0.1):9160 and localhost(127.0.0.1):9160 these are equal according to Host#equals(), but they have different hash codes. Makes it tricky to use in hash base collections.