Skip to content

Commit ae75a98

Browse files
authored
Add exception logging when interrupted (#131153)
1 parent a04f075 commit ae75a98

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

server/src/test/java/org/elasticsearch/common/util/concurrent/AbstractAsyncTaskTests.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,14 @@ protected void runInternal() {
5959
try {
6060
barrier1.await();
6161
} catch (Exception e) {
62+
logger.error("barrier1 interrupted", e);
6263
fail("interrupted");
6364
}
6465
count.incrementAndGet();
6566
try {
6667
barrier2.await();
6768
} catch (Exception e) {
69+
logger.error("barrier2 interrupted", e);
6870
fail("interrupted");
6971
}
7072
if (shouldRunThrowException) {
@@ -112,6 +114,7 @@ protected void runInternal() {
112114
try {
113115
barrier.await();
114116
} catch (Exception e) {
117+
logger.error("barrier interrupted", e);
115118
fail("interrupted");
116119
}
117120
if (shouldRunThrowException) {

0 commit comments

Comments
 (0)