This is an automated email from the ASF dual-hosted git repository.
apupier pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 55b7ba5cae82 CAMEL-25450 - improve stability of flaky IgniteComputeTest
55b7ba5cae82 is described below
commit 55b7ba5cae8250124580f83dc65050bde29de472
Author: Aurélien Pupier <[email protected]>
AuthorDate: Fri Oct 9 15:09:23 2026 +0200
CAMEL-25450 - improve stability of flaky IgniteComputeTest
Signed-off-by: Aurélien Pupier <[email protected]>
---
components/camel-ignite/pom.xml | 7 +++++++
.../apache/camel/component/ignite/IgniteComputeTest.java | 13 ++++++++++++-
2 files changed, 19 insertions(+), 1 deletion(-)
diff --git a/components/camel-ignite/pom.xml b/components/camel-ignite/pom.xml
index 24a0a11ca994..216d79fd8edc 100644
--- a/components/camel-ignite/pom.xml
+++ b/components/camel-ignite/pom.xml
@@ -87,6 +87,13 @@
<version>${project.version}</version>
<scope>test</scope>
</dependency>
+
+ <dependency>
+ <groupId>org.awaitility</groupId>
+ <artifactId>awaitility</artifactId>
+ <version>${awaitility-version}</version>
+ <scope>test</scope>
+ </dependency>
</dependencies>
<build>
diff --git
a/components/camel-ignite/src/test/java/org/apache/camel/component/ignite/IgniteComputeTest.java
b/components/camel-ignite/src/test/java/org/apache/camel/component/ignite/IgniteComputeTest.java
index 387bbe06c86b..81bc60e60e61 100644
---
a/components/camel-ignite/src/test/java/org/apache/camel/component/ignite/IgniteComputeTest.java
+++
b/components/camel-ignite/src/test/java/org/apache/camel/component/ignite/IgniteComputeTest.java
@@ -21,6 +21,7 @@ import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.UUID;
+import java.util.concurrent.TimeUnit;
import com.google.common.base.Splitter;
import com.google.common.collect.ImmutableMap;
@@ -29,9 +30,11 @@ import org.apache.camel.RuntimeCamelException;
import org.apache.camel.component.ignite.compute.IgniteComputeComponent;
import org.apache.camel.util.ObjectHelper;
import org.apache.ignite.Ignite;
+import org.apache.ignite.IgniteCluster;
import org.apache.ignite.Ignition;
import org.apache.ignite.events.EventType;
import org.assertj.core.api.Assertions;
+import org.awaitility.Awaitility;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.DisabledOnOs;
@@ -201,7 +204,15 @@ public class IgniteComputeTest extends AbstractIgniteTest {
}
private void startAdditionalGridInstance() {
- ADDITIONAL_INSTANCES.add(Ignition.start(createConfiguration()));
+ Ignite igniteInstance = Ignition.start(createConfiguration());
+ ADDITIONAL_INSTANCES.add(igniteInstance);
+ Awaitility.await().atMost(30, TimeUnit.SECONDS)
+ .until(() -> {
+ IgniteCluster cluster = igniteInstance.cluster();
+ return cluster.nodes().size() ==
ADDITIONAL_INSTANCES.size() + 1
+ && cluster.state().active();
+ });
+
}
@AfterEach