Github user srowen commented on the pull request:

    https://github.com/apache/spark/pull/7846#issuecomment-126897483
  
    If you're asking what I mean, I mean that the monitor thread itself can 
have the flag, like `isMonitoring`, that is `true` when it starts the blocking 
call to `monitorApplication` and `false` immediately after. Then expose another 
method like `stop()` or something, that interrupts the thread only if 
`isMonitoring` is true. This means that if the thread itself initiates 
`sc.stop()`, it won't get interrupted, but can still be interrupted in the 
blocking call to the library method.


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

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

Reply via email to