Github user tdas commented on the pull request:
https://github.com/apache/spark/pull/9982#issuecomment-159783735
rather than introducing another state which needs to be reasoned about,
isnt it easier to just make sure that state is set to STOPPED only when the
stop has completed. If there is a partial stop, the state will stay ACTIVE, and
following call to stop() will actually stop it cleanly.
I am assuming that the `stop()` of individual components are idempotent. I
am not sure whether that is true. If it is not true, then it best and cleanest
to make them idempotent.
---
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]