Stop reschedule stat. after device disconnected 66/59666/1
authorJozef Bacigal <jozef.bacigal@pantheon.tech>
Thu, 29 Jun 2017 11:09:33 +0000 (13:09 +0200)
committerJozef Bacigal <jozef.bacigal@pantheon.tech>
Thu, 29 Jun 2017 11:09:55 +0000 (13:09 +0200)
Resolves: Bug-7940

Change-Id: I07148b47b2d8a5efca28d7053ede040252e732db
Signed-off-by: Jozef Bacigal <jozef.bacigal@pantheon.tech>
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/StatisticsContextImpl.java

index 3002b8e632d83e53bb23b5d0f6f6376c92605cf0..fed62cab3e2dd7210c64a6daf5ef8790545b2411 100644 (file)
@@ -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);