From: Jozef Bacigal Date: Thu, 29 Jun 2017 11:09:33 +0000 (+0200) Subject: Stop reschedule stat. after device disconnected X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=70c3746c99d3670ba91cc7ab0c56cf951f38d6e1;p=openflowplugin.git Stop reschedule stat. after device disconnected Resolves: Bug-7940 Change-Id: I07148b47b2d8a5efca28d7053ede040252e732db Signed-off-by: Jozef Bacigal --- diff --git a/openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/StatisticsContextImpl.java b/openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/StatisticsContextImpl.java index 3002b8e632..fed62cab3e 100644 --- a/openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/StatisticsContextImpl.java +++ b/openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/StatisticsContextImpl.java @@ -316,7 +316,7 @@ class StatisticsContextImpl implements StatisticsContext { case RIP: final String errMsg = String.format("Device connection doesn't exist anymore. Primary connection status : %s", deviceContext.getPrimaryConnectionContext().getConnectionState()); - resultingFuture = Futures.immediateFailedFuture(new Throwable(errMsg)); + resultingFuture = Futures.immediateFailedFuture(new ConnectionException(errMsg)); break; default: resultingFuture = Futures.immediateCheckedFuture(Boolean.TRUE);