X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2FCompositeDataTreeCohort.java;h=c4afcfd4d803cf275894d270c9d2574681558bfe;hb=653c1f5dd20c851ff0992b8d5ab7b1dcab891fca;hp=338ae645345bc8b4e3237965260e67590ad811da;hpb=5083d20c7f49788e64ca9080aebcded623d7aa44;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/CompositeDataTreeCohort.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/CompositeDataTreeCohort.java index 338ae64534..c4afcfd4d8 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/CompositeDataTreeCohort.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/CompositeDataTreeCohort.java @@ -224,7 +224,7 @@ class CompositeDataTreeCohort { final Iterable results; try { - results = Await.result(Futures.sequence(Lists.transform(futures, e -> e.getValue()), + results = Await.result(Futures.sequence(Lists.transform(futures, Entry::getValue), ExecutionContexts.global()), timeout.duration()); } catch (TimeoutException e) { successfulFromPrevious = null; @@ -268,8 +268,8 @@ class CompositeDataTreeCohort { while (it.hasNext()) { firstEx.addSuppressed(it.next().cause()); } - Throwables.propagateIfInstanceOf(firstEx, ExecutionException.class); - Throwables.propagateIfInstanceOf(firstEx, TimeoutException.class); + Throwables.throwIfInstanceOf(firstEx, ExecutionException.class); + Throwables.throwIfInstanceOf(firstEx, TimeoutException.class); throw new ExecutionException(firstEx); } changeStateFrom(currentState, afterState);