From 66cb0e389b5ab8162d02d6ccb55e12336bb2c644 Mon Sep 17 00:00:00 2001 From: Thomas Schroeter Date: Wed, 27 Jun 2018 12:57:37 +0100 Subject: [PATCH] Warning timer thread should run as a daemon (#3450) --- .../net/corda/nodeapi/internal/network/NetworkBootstrapper.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node-api/src/main/kotlin/net/corda/nodeapi/internal/network/NetworkBootstrapper.kt b/node-api/src/main/kotlin/net/corda/nodeapi/internal/network/NetworkBootstrapper.kt index 3dbc6589bf..e064c5f627 100644 --- a/node-api/src/main/kotlin/net/corda/nodeapi/internal/network/NetworkBootstrapper.kt +++ b/node-api/src/main/kotlin/net/corda/nodeapi/internal/network/NetworkBootstrapper.kt @@ -77,7 +77,7 @@ class NetworkBootstrapper val numParallelProcesses = Runtime.getRuntime().availableProcessors() val timePerNode = 40.seconds // On the test machine, generating the node info takes 7 seconds for a single node. val tExpected = maxOf(timePerNode, timePerNode * nodeDirs.size.toLong() / numParallelProcesses.toLong()) - val warningTimer = Timer("WarnOnSlowMachines", false).schedule(tExpected.toMillis()) { + val warningTimer = Timer("WarnOnSlowMachines", true).schedule(tExpected.toMillis()) { println("... still waiting. If this is taking longer than usual, check the node logs.") } val executor = Executors.newFixedThreadPool(numParallelProcesses)