From b6ce17d143193fc63d7fda20e791e334590b2f3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenzo=20Dematt=C3=A9?= Date: Wed, 16 Jul 2025 17:31:05 +0200 Subject: [PATCH] Add exception logging when interrupted (#131153) --- .../common/util/concurrent/AbstractAsyncTaskTests.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/src/test/java/org/elasticsearch/common/util/concurrent/AbstractAsyncTaskTests.java b/server/src/test/java/org/elasticsearch/common/util/concurrent/AbstractAsyncTaskTests.java index ec8e0f69d89d8..a193bcd8a89ed 100644 --- a/server/src/test/java/org/elasticsearch/common/util/concurrent/AbstractAsyncTaskTests.java +++ b/server/src/test/java/org/elasticsearch/common/util/concurrent/AbstractAsyncTaskTests.java @@ -59,12 +59,14 @@ protected void runInternal() { try { barrier1.await(); } catch (Exception e) { + logger.error("barrier1 interrupted", e); fail("interrupted"); } count.incrementAndGet(); try { barrier2.await(); } catch (Exception e) { + logger.error("barrier2 interrupted", e); fail("interrupted"); } if (shouldRunThrowException) { @@ -112,6 +114,7 @@ protected void runInternal() { try { barrier.await(); } catch (Exception e) { + logger.error("barrier interrupted", e); fail("interrupted"); } if (shouldRunThrowException) {