tmielke commented on code in PR #24526:
URL: https://github.com/apache/camel/pull/24526#discussion_r3550116469
##########
components/camel-zookeeper-master/src/test/java/org/apache/camel/component/zookeepermaster/integration/MasterEndpointFailoverIT.java:
##########
@@ -36,12 +39,16 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+import static org.awaitility.Awaitility.await;
+
public class MasterEndpointFailoverIT {
@RegisterExtension
static ZooKeeperService service = ZooKeeperServiceFactory.createService();
private static final transient Logger LOG =
LoggerFactory.getLogger(MasterEndpointFailoverIT.class);
+ private static final Duration FAILOVER_TIMEOUT = Duration.ofSeconds(5);
+
protected ProducerTemplate template;
protected CamelContext producerContext;
protected CamelContext consumerContext1;
Review Comment:
Zookeper service runs embedded inside the same JVM so master election will
be very fast and the 5 seconds timeout should be sufficient, even on busy CI
nodes.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]