GitHub user DrIgor opened a pull request: https://github.com/apache/zeppelin/pull/2039
[MINOR] Use standard java API to interrupt thread ### What is this PR for? Use java `Thread.interrupt` method to stop job progress polling thread. Standard API is: * proper synchronized * able to interrupt `Thread.sleep` with any interval ### What type of PR is it? [Refactoring] ### Questions: * Does the licenses files need update? no * Is there breaking changes for older versions? no * Does this needs documentation? no You can merge this pull request into a Git repository by running: $ git pull https://github.com/DrIgor/zeppelin refactor-progress-poller Alternatively you can review and apply these changes as the patch at: https://github.com/apache/zeppelin/pull/2039.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #2039 ---- commit 895787f244792427b397a970a9cc452c9919307f Author: Igor Drozdov <igor_droz...@epam.com> Date: 2017-02-20T07:04:12Z Use standard java API to interrupt thread ---- --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---