jerryshao commented on a change in pull request #23401: [SPARK-26513][Core] : 
Trigger GC on executor node idle
URL: https://github.com/apache/spark/pull/23401#discussion_r245186725
 
 

 ##########
 File path: core/src/main/scala/org/apache/spark/executor/Executor.scala
 ##########
 @@ -628,6 +630,22 @@ private[spark] class Executor(
           }
       } finally {
         runningTasks.remove(taskId)
+        if(idleGCEnabled) {
+          if (runningTasks.isEmpty) {
 
 Review comment:
   Yes, that's my concern. Executor doesn't have lots of information to check 
whether it will be idle for how long time. The current way of checking seems 
not so good.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to