Skip to content

Commit ec69ba5

Browse files
committed
[SYSTEMDS-3899] Avoid blocking entire input processed
1 parent a80e3dc commit ec69ba5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/main/java/org/apache/sysds/runtime/instructions/ooc/UnaryOOCInstruction.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public void processInstruction( ExecutionContext ec ) {
6565

6666
ExecutorService pool = CommonThreadPool.get();
6767
try {
68-
Future<?> task =pool.submit(() -> {
68+
pool.submit(() -> {
6969
IndexedMatrixValue tmp = null;
7070
try {
7171
while ((tmp = qIn.dequeueTask()) != LocalTaskQueue.NO_MORE_TASKS) {
@@ -80,9 +80,8 @@ public void processInstruction( ExecutionContext ec ) {
8080
throw new DMLRuntimeException(ex);
8181
}
8282
});
83-
task.get();
84-
} catch (ExecutionException | InterruptedException e) {
85-
throw new RuntimeException(e);
83+
} catch (Exception ex) {
84+
throw new DMLRuntimeException(ex);
8685
} finally {
8786
pool.shutdown();
8887
}

0 commit comments

Comments
 (0)