BUG-5903: do not rely on primary info on failure 27/40627/2
authorRobert Varga <rovarga@cisco.com>
Tue, 21 Jun 2016 16:09:03 +0000 (18:09 +0200)
committerRobert Varga <rovarga@cisco.com>
Tue, 21 Jun 2016 19:58:45 +0000 (21:58 +0200)
commit70b924258e6c87219c38bcfefb3781ee3d2e2d02
treec2ff3e8017fa7f02c8d65dd69590a18a9ba1176a
parent520c692c4a35fad2ac10e87314e44c07c15b6aaa
BUG-5903: do not rely on primary info on failure

This makes sure we check for failure before touching the result,
which is null if a failure occurs.

In order to keep disagnosti information we add a reference
to the message class being broadcast.

Change-Id: I26ab31a45916d11b61b990020bed89ae87233b14
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/TransactionChainProxy.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/utils/ActorContext.java
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/TransactionChainProxyTest.java
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/utils/ActorContextTest.java