LuciferYang commented on code in PR #36890:
URL: https://github.com/apache/spark/pull/36890#discussion_r900916864


##########
resource-managers/yarn/src/main/scala/org/apache/spark/deploy/yarn/YarnAllocator.scala:
##########
@@ -462,6 +463,21 @@ private[yarn] class YarnAllocator(
 
   private def getHostAddress(nodeReport: NodeReport): String = 
nodeReport.getNodeId.getHost
 
+  /**
+   * Checks if node is in DECOMMISSIONING STATE
+   *
+   * Visible for testing.
+   */
+  def isDecommissioningNode(node: NodeReport): Boolean = {

Review Comment:
   Can we change this to `private` and use `invokePrivate` in test suite? 



-- 
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