Skip to content

Commit ab36f17

Browse files
authored
Update BaseConcurrentBenchmark.java
1 parent 620b83b commit ab36f17

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/sail/memory/src/test/java/org/eclipse/rdf4j/sail/memory/benchmark/BaseConcurrentBenchmark.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ void threads(int threadCount, Runnable runnable) throws InterruptedException {
7373
}
7474
} catch (InterruptedException e) {
7575
e.printStackTrace();
76+
throw e;
7677
} finally {
7778
latchDone.countDown();
7879
}
@@ -84,7 +85,7 @@ void threads(int threadCount, Runnable runnable) throws InterruptedException {
8485

8586
}
8687

87-
Future<?> submit(Runnable runnable) {
88+
Future<?> submit(Runnable runnable) throws InterruptedException {
8889
return executorService.submit(() -> {
8990
try {
9091
semaphore.acquire();
@@ -95,6 +96,7 @@ Future<?> submit(Runnable runnable) {
9596
}
9697
} catch (InterruptedException e) {
9798
e.printStackTrace();
99+
throw e;
98100
}
99101
});
100102
}

0 commit comments

Comments
 (0)