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
This commit is contained in:
Jason Tedor 2018-02-13 10:14:42 -05:00 committed by GitHub
parent fea1b20529
commit 9e23b7ed72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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