commit | eadeaf514420997f4b13548282dfa76b55f6d7dd | [log] [tgz] |
---|---|---|
author | Murtadha Hubail <mhubail@apache.org> | Tue Nov 07 01:51:55 2017 +0300 |
committer | Murtadha Hubail <mhubail@apache.org> | Tue Nov 07 03:42:15 2017 -0800 |
tree | cc4a811fc808c65bebabe3501039cd5c736b0192 | |
parent | a0490ba6f46f28470052b3cadeec1a60be0f394e [diff] |
[ASTERIXDB-1974][STO] Re-interrupt Thread on Interrupt in PageQueue - user model changes: no - storage format changes: no - interface changes: no Details: - Re-interrupt thread and throw exception when a thread adding a page to the PageQueue is interrupted. Change-Id: Ia71e6623315af8eb1e9e8c58608e01ff4eb99b40 Reviewed-on: https://asterix-gerrit.ics.uci.edu/2128 Sonar-Qube: Jenkins <jenkins@fulliautomatix.ics.uci.edu> Reviewed-by: Ian Maxon <imaxon@apache.org> Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu> Contrib: Jenkins <jenkins@fulliautomatix.ics.uci.edu> Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
diff --git a/hyracks-fullstack/hyracks/hyracks-storage-common/src/main/java/org/apache/hyracks/storage/common/buffercache/AsyncFIFOPageQueueManager.java b/hyracks-fullstack/hyracks/hyracks-storage-common/src/main/java/org/apache/hyracks/storage/common/buffercache/AsyncFIFOPageQueueManager.java index b693c91..d4c1a58 100644 --- a/hyracks-fullstack/hyracks/hyracks-storage-common/src/main/java/org/apache/hyracks/storage/common/buffercache/AsyncFIFOPageQueueManager.java +++ b/hyracks-fullstack/hyracks/hyracks-storage-common/src/main/java/org/apache/hyracks/storage/common/buffercache/AsyncFIFOPageQueueManager.java
@@ -66,8 +66,8 @@ throw new HyracksDataException("Queue is closing"); } } catch (InterruptedException e) { - // TODO Auto-generated catch block - e.printStackTrace(); + Thread.currentThread().interrupt(); + throw HyracksDataException.create(e); } } }