Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[LIVY-658] RSCDriver should catch exception if cancel job failed duri…
…ng shutdown ## What changes were proposed in this pull request? Currently, if startup meet exception, exception will trigger spark to shutdown, then trigger cancel job, but cancel job will throw another exception due to spark is not initialized. The new exception will swallow the old exception. https://issues.apache.org/jira/browse/LIVY-658 Before changes: ![cancel job exception](https://user-images.githubusercontent.com/7855100/64118287-f0961900-cdc9-11e9-9b72-d051fb4bdbdf.jpg) After changes: ![cancel job exception after fix](https://user-images.githubusercontent.com/7855100/64118295-f4c23680-cdc9-11e9-9a2d-38efa0770a99.jpg) ## How was this patch tested? Tested manually, and add unit test. Please review https://livy.incubator.apache.org/community/ before opening a pull request. Author: Jeffrey(Xilang) Yan <[email protected]> Closes apache#223 from yantzu/initialize_exception_swallow_by_shutdown_exception.
- Loading branch information