BUG-8445: check sessionId before propagating failures 47/59847/2
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 26 Jun 2017 14:31:30 +0000 (16:31 +0200)
committerRobert Varga <nite@hq.sk>
Mon, 3 Jul 2017 11:08:18 +0000 (11:08 +0000)
commit417f3a8c2401e6c8ce3c91ea969da24929c24c1c
treefe40523f7425d49d57c7f3a3dde879afc730ecb5
parent7d53e7984cfbd69fdf78ad07112974aa3e56fc55
BUG-8445: check sessionId before propagating failures

When we have leader movement ocurring, based on timing details we
can re-establish a connection to the new leader and then start
receiving responses from the old leader telling us it no longer
is the leader.

To stop this from happening we need to check connection session ID
against the incoming failure.

Change-Id: If9a891016c7f213f2552283e3ec13485e598f5a4
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 1c495bceb8d9c203f5ce53ea1ab9d907efb4d7b3)
opendaylight/md-sal/cds-access-client/src/main/java/org/opendaylight/controller/cluster/access/client/ClientActorBehavior.java