Github user DrIgor commented on the issue:
https://github.com/apache/zeppelin/pull/2039
@felixcheung `terminate` flag is shared across several threads and is
accessed without any synchronization.
And we don't need to implement custom interruption flag because java
already has it â `Thread.interrupt`
Standard flag is even better, because it can interrupt `Thread.sleep`.
This PR doesn't change any logic, it just replaces `terminate` with
`Thread.interrupted()` and provides proper handling of `InterruptedException`
---
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.
---