Skip to content

Commit

Permalink
Include targetNodeName in shutdown metadata toString()
Browse files Browse the repository at this point in the history
Reporting the `targetNodeName` was added to `main` in elastic#78727 but omitted
from the backport in elastic#78865. This commit adds the missing field to the
`toString()` response.
  • Loading branch information
DaveCTurner committed Jun 12, 2023
1 parent b326926 commit 1d5034b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 1d5034b

Please sign in to comment.