BUG-8309: Add message identity information 44/56044/5
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 26 Apr 2017 08:46:15 +0000 (10:46 +0200)
committerTom Pantelis <tompantelis@gmail.com>
Wed, 26 Apr 2017 15:38:13 +0000 (15:38 +0000)
commit4ec6c11c03ae92e11a7cea29795e4b7f5547f64e
treee126bc56625a2ff669e1f1b538b0724ad137d14c
parentf96481ce0c411abe27b3cda2d5d0276895370783
BUG-8309: Add message identity information

We have encountered an attempt to serialize a local request across
a remote connection. Since this is hit by the akka serializer, we
have lost the identity of the call site and of the message, because
all akka is seeing is the Envelope and the exception's stack trace,
which only indicates class hierarchy up to and including
AbstractLocalTransactionRequest.

This patch enriches the exception message so we know what the actual
request was, hopefully pinpointing the offending call site. Since
the problem revolves around the reconnect process, bump critical
transitions to info instead of debug.

Change-Id: I6d6d6e702d4b5baff7b707242583e923708e7637
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/md-sal/cds-access-api/src/main/java/org/opendaylight/controller/cluster/access/commands/AbstractLocalTransactionRequest.java
opendaylight/md-sal/cds-access-client/src/main/java/org/opendaylight/controller/cluster/access/client/AbstractClientConnection.java
opendaylight/md-sal/cds-access-client/src/main/java/org/opendaylight/controller/cluster/access/client/AbstractReceivingClientConnection.java
opendaylight/md-sal/cds-access-client/src/main/java/org/opendaylight/controller/cluster/access/client/ClientActorBehavior.java