Output Request toString in RequestTimeoutException 84/79284/1
authorTom Pantelis <tompantelis@gmail.com>
Mon, 7 Jan 2019 16:43:51 +0000 (11:43 -0500)
committerTom Pantelis <tompantelis@gmail.com>
Mon, 7 Jan 2019 16:43:51 +0000 (11:43 -0500)
It will help for debugging to see the transaction ID -
might as well output the entire Request which includes
that.

Change-Id: I63eb20dc6b883c95d4b2059a231a5848d5a7b67c
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
opendaylight/md-sal/cds-access-client/src/main/java/org/opendaylight/controller/cluster/access/client/AbstractClientConnection.java

index 9fd75cc..7375fe0 100644 (file)
@@ -422,7 +422,7 @@ public abstract class AbstractClientConnection<T extends BackendInfo> {
         context.executeInActor(current -> {
             final double time = beenOpen * 1.0 / 1_000_000_000;
             entry.complete(entry.getRequest().toRequestFailure(
-                new RequestTimeoutException("Timed out after " + time + " seconds")));
+                new RequestTimeoutException(entry.getRequest() + " timed out after " + time + " seconds")));
             return current;
         });
     }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.