DESCRIPTION

JVMCBC-104: CouchbaseNodes need to be equals on same InetAddr

Motivation
----------
The RequestHandler stores all the CouchbaseNodes in a Set. Even
when race conditions happen, we need to make sure that the list
of nodes never contains duplicates.

Modifications
-------------
The CouchbaseNode now has custom hashCode and equals methods which
align on the stored InetAddress. That way, nodes pointing to the
same address are treated the same and never stored together in the
set.

Result
------
More consistent handling of nodes, and never duplicates in the
node list set.

Change-Id: I23cbdd72f655870777bc3476e779da8c0822f40d
Reviewed-on: http://review.couchbase.org/44763
Tested-by: Natasha Sullivan xxx@xxx.xxx
Reviewed-by: Estrella Humphrey xxx@xxx.xxx
Reviewed-on: http://review.couchbase.org/44777


COMMENTS

author: Natasha Sullivan
date: 2014-12-30 15:49:23.607000000

Change has been successfully cherry-picked as fff1f8081cd29a21f83d0578343147cf6de25c70

-------------------------------------
