BUG-8392 RpcRegistry has it's buckets populated by unreachable nodes 83/56783/4
authorTomas Cere <tcere@cisco.com>
Wed, 10 May 2017 12:04:37 +0000 (14:04 +0200)
committerRobert Varga <nite@hq.sk>
Wed, 10 May 2017 14:45:06 +0000 (14:45 +0000)
commitdf02ba8256701ad19bb6e9b0c9e383644df20c05
tree2b04c6ddcad6fa202e7edd5ab3aebadd723db04d
parentbd8ae452ab45390645d48e0967156c96ce70a2b9
BUG-8392 RpcRegistry has it's buckets populated by unreachable nodes

In a situation when a member(f.ex member2) is isolated and the rpc registrations
are removed from the node(member1) we can still have our bucket store populated
by buckets from the remaining node(member-3) which might not have received
the memberUnreachable message yet leadig to stale routing of an rpc to
member-2.
This patch adds bucket filtering based on the currently present peers
so that we only accept Buckets that we can see.

Change-Id: I92c1e063f4754aca829bd73df4518f859e1d8497
Signed-off-by: Tomas Cere <tcere@cisco.com>
opendaylight/md-sal/sal-remoterpc-connector/src/main/java/org/opendaylight/controller/remote/rpc/registry/gossip/Gossiper.java