Skip to content

Commit

Permalink
Backport: Record RM callback nodes report when nodes updated (tony-fr…
Browse files Browse the repository at this point in the history
  • Loading branch information
zuston committed Nov 15, 2021
1 parent 3f6f48c commit 01bc91c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tony-core/src/main/java/com/linkedin/tony/ApplicationMaster.java
Original file line number Diff line number Diff line change
Expand Up @@ -1271,7 +1271,16 @@ public void onShutdownRequest() {

@Override
public void onNodesUpdated(List<NodeReport> list) {
LOG.info("onNodesUpdated called in RMCAllbackHandler");
StringBuilder consoleMsgBuilder =
new StringBuilder("Received onNodesUpdated called in RMCallbackHandler, node reports as follows.");
if (list == null || list.size() == 0) {
LOG.info(consoleMsgBuilder.toString());
return;
}
for (NodeReport nodeReport : list) {
consoleMsgBuilder.append("\nnodeId = " + nodeReport.getNodeId() + ", healthReport = " + nodeReport.getHealthReport());
}
LOG.info(consoleMsgBuilder.toString());
}

@Override
Expand Down

0 comments on commit 01bc91c

Please sign in to comment.