mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-03 09:29:11 +00:00
[Tests] add a debug logging message when starting an external node
This commit is contained in:
parent
6de18262dd
commit
c6090e5d9b
@ -25,6 +25,8 @@ import org.elasticsearch.action.admin.cluster.node.info.NodesInfoResponse;
|
|||||||
import org.elasticsearch.client.Client;
|
import org.elasticsearch.client.Client;
|
||||||
import org.elasticsearch.client.transport.TransportClient;
|
import org.elasticsearch.client.transport.TransportClient;
|
||||||
import org.elasticsearch.cluster.ClusterName;
|
import org.elasticsearch.cluster.ClusterName;
|
||||||
|
import org.elasticsearch.common.logging.ESLogger;
|
||||||
|
import org.elasticsearch.common.logging.Loggers;
|
||||||
import org.elasticsearch.common.settings.ImmutableSettings;
|
import org.elasticsearch.common.settings.ImmutableSettings;
|
||||||
import org.elasticsearch.common.settings.Settings;
|
import org.elasticsearch.common.settings.Settings;
|
||||||
import org.elasticsearch.common.transport.TransportAddress;
|
import org.elasticsearch.common.transport.TransportAddress;
|
||||||
@ -53,6 +55,9 @@ final class ExternalNode implements Closeable {
|
|||||||
private final String clusterName;
|
private final String clusterName;
|
||||||
private TransportClient client;
|
private TransportClient client;
|
||||||
|
|
||||||
|
private final ESLogger logger = Loggers.getLogger(getClass());
|
||||||
|
|
||||||
|
|
||||||
ExternalNode(File path, long seed, SettingsSource settingsSource) {
|
ExternalNode(File path, long seed, SettingsSource settingsSource) {
|
||||||
this(path, null, seed, settingsSource);
|
this(path, null, seed, settingsSource);
|
||||||
}
|
}
|
||||||
@ -109,6 +114,7 @@ final class ExternalNode implements Closeable {
|
|||||||
builder.inheritIO();
|
builder.inheritIO();
|
||||||
boolean success = false;
|
boolean success = false;
|
||||||
try {
|
try {
|
||||||
|
logger.debug("starting external node [{}] with: {}", nodeName, builder.command());
|
||||||
process = builder.start();
|
process = builder.start();
|
||||||
this.nodeInfo = null;
|
this.nodeInfo = null;
|
||||||
if (waitForNode(client, nodeName)) {
|
if (waitForNode(client, nodeName)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user