Github user jerryshao commented on a diff in the pull request:

    https://github.com/apache/spark/pull/20781#discussion_r173709533
  
    --- Diff: 
resource-managers/yarn/src/main/scala/org/apache/spark/deploy/yarn/YarnAllocator.scala
 ---
    @@ -81,7 +81,7 @@ private[yarn] class YarnAllocator(
       private val releasedContainers = Collections.newSetFromMap[ContainerId](
         new ConcurrentHashMap[ContainerId, java.lang.Boolean])
     
    -  private val numExecutorsRunning = new AtomicInteger(0)
    +  private val runningExecutors = new 
java.util.concurrent.ConcurrentHashMap[String, Unit]()
    --- End diff --
    
    This can be changed to `Collections.newSetFromMap`, since we only need 
`Set` instead of `Map`.


---

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

Reply via email to