From 9e23b7ed7246f9e41e309365e80cb1d588b31915 Mon Sep 17 00:00:00 2001 From: Jason Tedor Date: Tue, 13 Feb 2018 10:14:42 -0500 Subject: [PATCH] Add startup logging for standalone tests We need to investigate why startup is taking so long in CI for standalone tests. This commit adds logging for bootstrap and network code that is executed before the node starts initializing in case this is the source of the trouble. Relates #28659 --- .../main/groovy/org/elasticsearch/gradle/test/NodeInfo.groovy | 1 + 1 file changed, 1 insertion(+) diff --git a/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/NodeInfo.groovy b/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/NodeInfo.groovy index 40a8ec230ac..e1ff6e48202 100644 --- a/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/NodeInfo.groovy +++ b/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/NodeInfo.groovy @@ -163,6 +163,7 @@ class NodeInfo { } env = ['JAVA_HOME': project.runtimeJavaHome] + args.addAll("-E", "logger.org.elasticsearch.bootstrap=debug", "-E", "logger.org.elasticsearch.common.network=debug") args.addAll("-E", "node.portsfile=true") String collectedSystemProperties = config.systemProperties.collect { key, value -> "-D${key}=${value}" }.join(" ") String esJavaOpts = config.jvmArgs.isEmpty() ? collectedSystemProperties : collectedSystemProperties + " " + config.jvmArgs