Skip to content

Commit 969770f

Browse files
authored
Include targetNodeName in shutdown metadata toString() (#96765)
Reporting the `targetNodeName` was added to `main` in #78727 but omitted from the backport in #78865. This commit adds the missing field to the `toString()` response.
1 parent b326926 commit 969770f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

server/src/main/java/org/elasticsearch/cluster/metadata/SingleNodeShutdownMetadata.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,9 @@ public String toString() {
271271
if (allocationDelay != null) {
272272
stringBuilder.append(", allocationDelay=[").append(allocationDelay).append("]");
273273
}
274+
if (targetNodeName != null) {
275+
stringBuilder.append(", targetNodeName=[").append(targetNodeName).append("]");
276+
}
274277
stringBuilder.append("}");
275278
return stringBuilder.toString();
276279
}

0 commit comments

Comments
 (0)