Michael Smith has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/24044


Change subject: IMPALA-14788: Prevent Thread interrupt after completion
......................................................................

IMPALA-14788: Prevent Thread interrupt after completion

When cancelling a thread, uses computeIfPresent to prevent interrupting
the thread after the thread has finished all its work, which would leave
the thread in an interrupted state if it's re-used later. Ensures the
Thread's interrupted status is cleared after cancellable work is done.

Moves logging after that work to avoid logging while holding a lock.

Change-Id: I54af34d253511f18f59b5cd43f1cf57a26a772eb
---
M fe/src/main/java/org/apache/impala/service/Canceller.java
1 file changed, 15 insertions(+), 9 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/44/24044/1
--
To view, visit http://gerrit.cloudera.org:8080/24044
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I54af34d253511f18f59b5cd43f1cf57a26a772eb
Gerrit-Change-Number: 24044
Gerrit-PatchSet: 1
Gerrit-Owner: Michael Smith <[email protected]>

Reply via email to