diff --git a/server/src/main/java/org/elasticsearch/cluster/metadata/SingleNodeShutdownMetadata.java b/server/src/main/java/org/elasticsearch/cluster/metadata/SingleNodeShutdownMetadata.java index 576a7e1b55afb..013b6e7d764fe 100644 --- a/server/src/main/java/org/elasticsearch/cluster/metadata/SingleNodeShutdownMetadata.java +++ b/server/src/main/java/org/elasticsearch/cluster/metadata/SingleNodeShutdownMetadata.java @@ -271,6 +271,9 @@ public String toString() { if (allocationDelay != null) { stringBuilder.append(", allocationDelay=[").append(allocationDelay).append("]"); } + if (targetNodeName != null) { + stringBuilder.append(", targetNodeName=[").append(targetNodeName).append("]"); + } stringBuilder.append("}"); return stringBuilder.toString(); }