Return throwable in NeverReconnectStrategy 53/27953/2
authorClaudio D. Gasparini <cgaspari@cisco.com>
Mon, 5 Oct 2015 13:36:00 +0000 (15:36 +0200)
committerGerrit Code Review <gerrit@opendaylight.org>
Sun, 11 Oct 2015 20:54:48 +0000 (20:54 +0000)
NeverReconnectStrategy returns empty throwable instead of
passed throwabled with the failed previous
connection reasons.

Change-Id: I5695af09379f06a66c37ccf27293ff85657afeaa
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
(cherry picked from commit a90b34b052c46e4d405b1c477a3a5a0f47e1bd98)

opendaylight/commons/protocol-framework/src/main/java/org/opendaylight/protocol/framework/NeverReconnectStrategy.java

index 926183f973ed43ec722a8350b846d83d4a1024f6..824242cba6eccbe228cc0d7c271de7b703443c82 100644 (file)
@@ -32,7 +32,7 @@ public final class NeverReconnectStrategy implements ReconnectStrategy {
 
     @Override
     public Future<Void> scheduleReconnect(final Throwable cause) {
-        return executor.newFailedFuture(new Throwable());
+        return executor.newFailedFuture(new Throwable("Reconnect failed", cause));
     }
 
     @Override