Raviston6296 commented on PR #60142:
URL: https://github.com/apache/spark/pull/60142#issuecomment-6685958843

   LGTM. One thing I wanted to check was whether the AM actually receives the 
`RUNNING` report when it no longer has containers on the node, since its 
executors there were already decommissioned. In the Hadoop 3.4.1 RM, 
`RMNodeImpl.RecommissionNodeTransition` raises 
`NodesListManagerEventType.NODE_USABLE`, and `NodesListManager.handle` passes 
it to `sendRMAppNodeUpdateEventToNonFinalizedApps`, the same path as 
`NODE_DECOMMISSIONING`. So every running app gets it in `getUpdatedNodes`, 
whether or not it has containers there, and the new `RUNNING` case will see it.
   
   This also covers a host that goes `DECOMMISSIONED` and later rejoins: its 
`RUNNING` report clears the stale entry as well. With a Hadoop version that 
doesn't report recommissioned nodes, nothing changes, because the entry just 
stays until LRU eviction as before. `remove` on a host that was never cached is 
a no-op, so `RUNNING` reports for other nodes, e.g. an `UNHEALTHY` node 
recovering, are harmless.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to