compressionGuard.acquire();
final boolean newTaskNecessary = updateCompressionState(flowcapableNodePath, syncupEntry);
if (newTaskNecessary) {
- return super.syncup(flowcapableNodePath, syncupEntry);
- } else {
- return Futures.immediateFuture(Boolean.TRUE);
+ super.syncup(flowcapableNodePath, syncupEntry);
}
+ return Futures.immediateFuture(Boolean.TRUE);
} finally {
compressionGuard.release();
}
allResults.add(reactor.syncup(fcNodePath, fourth));
latchForFirst.countDown();
- Futures.successfulAsList(allResults).get(1, TimeUnit.SECONDS);
+ Futures.allAsList(allResults).get(1, TimeUnit.SECONDS);
LOG.info("all configs done");
syncThreadPool.shutdown();