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

    https://github.com/apache/spark/pull/306#discussion_r11234306
  
    --- Diff: core/src/main/scala/org/apache/spark/deploy/master/Master.scala 
---
    @@ -290,10 +290,11 @@ private[spark] class Master(
                 appInfo.removeExecutor(exec)
                 exec.worker.removeExecutor(exec)
     
    +            val normalExit = exitStatus.exists(_ == 0)
    --- End diff --
    
    I think the tricky part is in L370, when you run a standalone application, 
it exists as as normal, but will trigger a DisassociatedEvent to the master, 
the current implementation set the Executor status to KILLED no matter it is 
exists normally or is due to the ctrl+c.....(I didn't test it carefully...)


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to