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

commit e96a1015a580bef0eaf8a566b958ba29e5d8e9f8
Author: AurĂ©lien Pupier <[email protected]>
AuthorDate: Fri Nov 20 12:59:19 2026 +0100

    CAMEL-27291: camel-kudu - Only ignore KuduException while waiting for the 
cluster
    
    Narrow the Awaitility ignored exceptions to KuduException, so that any other
    exception thrown while polling fails the wait instead of being swallowed.
    
    Co-authored-by: IBM Bob 2.2.1
    Signed-off-by: AurĂ©lien Pupier <[email protected]>
---
 .../org/apache/camel/component/kudu/IntegrationKuduConfiguration.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/components/camel-kudu/src/test/java/org/apache/camel/component/kudu/IntegrationKuduConfiguration.java
 
b/components/camel-kudu/src/test/java/org/apache/camel/component/kudu/IntegrationKuduConfiguration.java
index e65b101ae040..a088067adaea 100644
--- 
a/components/camel-kudu/src/test/java/org/apache/camel/component/kudu/IntegrationKuduConfiguration.java
+++ 
b/components/camel-kudu/src/test/java/org/apache/camel/component/kudu/IntegrationKuduConfiguration.java
@@ -31,6 +31,7 @@ import com.github.dockerjava.api.model.Ports;
 import org.apache.camel.CamelContext;
 import org.apache.camel.Endpoint;
 import org.apache.kudu.client.KuduClient;
+import org.apache.kudu.client.KuduException;
 import org.junit.jupiter.api.extension.AfterAllCallback;
 import org.junit.jupiter.api.extension.BeforeAllCallback;
 import org.junit.jupiter.api.extension.ExtensionContext;
@@ -150,7 +151,7 @@ public class IntegrationKuduConfiguration implements 
BeforeAllCallback, AfterAll
     private void awaitClusterReady() {
         await().atMost(60, TimeUnit.SECONDS)
                 .pollInterval(500, TimeUnit.MILLISECONDS)
-                .ignoreExceptions()
+                .ignoreExceptionsInstanceOf(KuduException.class)
                 .until(() -> 
kuduClient.listTabletServers().getTabletServersCount() >= 1);
     }
 

Reply via email to