This is an automated email from the ASF dual-hosted git repository.
tkalkirill pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/ignite-3.git
The following commit(s) were added to refs/heads/main by this push:
new 084d850d6d2 IGNITE-26128 Add to IgniteTestUtils#runRace suspended
exceptions of operations if the race did not end by timeout (#6368)
084d850d6d2 is described below
commit 084d850d6d275cbbbe4605c002d15f66f6b139c2
Author: Kirill Tkalenko <[email protected]>
AuthorDate: Tue Aug 5 15:47:25 2025 +0300
IGNITE-26128 Add to IgniteTestUtils#runRace suspended exceptions of
operations if the race did not end by timeout (#6368)
---
.../ignite/internal/testframework/IgniteTestUtils.java | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git
a/modules/core/src/testFixtures/java/org/apache/ignite/internal/testframework/IgniteTestUtils.java
b/modules/core/src/testFixtures/java/org/apache/ignite/internal/testframework/IgniteTestUtils.java
index dd4babb5302..f379f5d385a 100644
---
a/modules/core/src/testFixtures/java/org/apache/ignite/internal/testframework/IgniteTestUtils.java
+++
b/modules/core/src/testFixtures/java/org/apache/ignite/internal/testframework/IgniteTestUtils.java
@@ -914,18 +914,20 @@ public final class IgniteTestUtils {
thread.interrupt();
}
- fail("Race operations took too long.");
+ throw createAssertionError("Race operations took too long.", e,
throwables);
}
if (!throwables.isEmpty()) {
- AssertionError assertionError = new AssertionError("One or several
threads have failed.");
+ throw createAssertionError("One or several threads have failed.",
null, throwables);
+ }
+ }
- for (Throwable throwable : throwables) {
- assertionError.addSuppressed(throwable);
- }
+ private static AssertionError createAssertionError(String errorMessage,
@Nullable Throwable cause, Collection<Throwable> suppressed) {
+ var error = new AssertionError(errorMessage, cause);
- throw assertionError;
- }
+ suppressed.forEach(error::addSuppressed);
+
+ return error;
}
/**