Merge "improve fixed incorrect Future usage in (Bundle)FlowForwarder"
authorArunprakash D <d.arunprakash@ericsson.com>
Mon, 19 Nov 2018 15:21:17 +0000 (15:21 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Mon, 19 Nov 2018 15:21:17 +0000 (15:21 +0000)
applications/forwardingrules-manager/src/main/java/org/opendaylight/openflowplugin/applications/frm/impl/BundleFlowForwarder.java
applications/forwardingrules-manager/src/main/java/org/opendaylight/openflowplugin/applications/frm/impl/FlowForwarder.java

index 351f703dbb0056916292657c4d3adc5704aa5277..2110297361a94798160ed7d98f72e4dcfbd4133e 100644 (file)
@@ -245,6 +245,7 @@ public class BundleFlowForwarder {
         @Override
         public void onFailure(Throwable throwable) {
             LOG.error("Error while pushing flow add bundle {} for device {}", message, nodeId);
+            resultFuture.setException(throwable);
         }
     }
 }
index 00eda3f7c1f65b576feb3d2f95ab07ab7284dbf5..58ccf156006ebf37eaf3c4dbbec107548aff20bc 100644 (file)
@@ -410,6 +410,7 @@ public class FlowForwarder extends AbstractListeningCommiter<Flow> {
         public void onFailure(Throwable throwable) {
             LOG.error("Service call for adding flow with id {} failed for node {}",
                     getFlowId(addFlowInput.getFlowRef()), nodeId, throwable);
+            resultFuture.setException(throwable);
         }
     }
 
@@ -459,6 +460,7 @@ public class FlowForwarder extends AbstractListeningCommiter<Flow> {
         public void onFailure(Throwable throwable) {
             LOG.error("Service call for updating flow with id {} failed for node {}",
                     getFlowId(updateFlowInput.getFlowRef()), nodeId, throwable);
+            resultFuture.setException(throwable);
         }
     }
 }