X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=openflowplugin-impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fopenflowplugin%2Fimpl%2Fstatistics%2FStatisticsContextImpl.java;h=145e51d9a71f701ae983d220edd307ad7f3f02eb;hb=432dcd52601bc80f5de7988c7cba5899c4ee04fa;hp=9b246c4a709784530f70b90b0ff9de3fc468fdf7;hpb=9775adb98564ffb2d0f7d2476cd32fed76d21bbf;p=openflowplugin.git 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 9b246c4a70..145e51d9a7 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 @@ -221,7 +221,8 @@ class StatisticsContextImpl implements StatisticsContext { // build statistics gathering future final ListenableFuture newDataGathering = collectingStatType.stream() .reduce(lastDataGathering, this::statChainFuture, - (listenableFuture, asyn) -> Futures.transformAsync(listenableFuture, result -> asyn)); + (listenableFuture, asyn) -> Futures.transformAsync(listenableFuture, result -> asyn, + MoreExecutors.directExecutor())); // write end timestamp to state snapshot container Futures.addCallback(newDataGathering, new FutureCallback() { @@ -266,7 +267,7 @@ class StatisticsContextImpl implements StatisticsContext { getDeviceInfo(), multipartType, deviceContext, deviceContext, convertorExecutor, statisticsWriterProvider, executorService) : Futures .immediateFuture(Boolean.FALSE); - }); + }, MoreExecutors.directExecutor()); } private void startGatheringData() {