jamesnetherton opened a new issue, #4387:
URL: https://github.com/apache/camel-quarkus/issues/4387

   I think the `follower` application is being elected as the cluster leader 
earlier than when the test is expecting.
   
   ```
   2023-01-09T04:52:40.5524721Z 2023-01-09 04:52:40,551 INFO  
[org.apa.cam.qua.cor.CamelBootstrapRecorder] (main) Bootstrap runtime: 
org.apache.camel.quarkus.main.CamelMainRuntime
   2023-01-09T04:52:40.5526647Z 2023-01-09 04:52:40,552 INFO  
[org.apa.cam.mai.MainSupport] (main) Apache Camel (Main) 3.20.0 is starting
   2023-01-09T04:52:40.5630806Z 2023-01-09 04:52:40,562 INFO  
[org.apa.cam.imp.eng.AbstractCamelContext] (main) Apache Camel 3.20.0 (camel-1) 
is starting
   2023-01-09T04:52:40.5632501Z 2023-01-09 04:52:40,562 INFO  
[org.apa.cam.com.kub.KubernetesHelper] (main) Creating default kubernetes 
client without applying configuration
   2023-01-09T04:52:40.5656694Z 2023-01-09 04:52:40,565 INFO  
[org.apa.cam.imp.eng.AbstractCamelContext] (main) Routes startup (started:1)
   2023-01-09T04:52:40.5658008Z 2023-01-09 04:52:40,565 INFO  
[org.apa.cam.imp.eng.AbstractCamelContext] (main)     Started leader 
(master:ns:timer:test)
   2023-01-09T04:52:40.5659497Z 2023-01-09 04:52:40,565 INFO  
[org.apa.cam.imp.eng.AbstractCamelContext] (main) Apache Camel 3.20.0 (camel-1) 
started in 3ms (build:0ms init:1ms start:2ms)
   2023-01-09T04:52:40.5765971Z 2023-01-09 04:52:40,576 INFO  [io.quarkus] 
(main) camel-quarkus-integration-test-master-openshift 2.16.0-SNAPSHOT native 
(powered by Quarkus 999-SNAPSHOT) started in 0.057s. Listening on: 
http://0.0.0.0:42673
   2023-01-09T04:52:40.5766697Z 2023-01-09 04:52:40,576 INFO  [io.quarkus] 
(main) Profile prod activated. 
   2023-01-09T04:52:40.5767765Z 2023-01-09 04:52:40,576 INFO  [io.quarkus] 
(main) Installed features: [camel-core, camel-file, camel-kubernetes, 
camel-log, camel-master, camel-microprofile-health, camel-timer, cdi, 
kubernetes-client, openshift-client, resteasy, smallrye-context-propagation, 
smallrye-health, vertx]
   2023-01-09T04:52:40.5853951Z 2023-01-09 04:52:40,584 INFO  
[okh.moc.MockWebServer] (MockWebServer /127.0.0.1:47526) MockWebServer[44583] 
received request: GET 
/apis/coordination.k8s.io/v1/namespaces/test/leases/leaders-ns HTTP/1.1 and 
responded: HTTP/1.1 404 Client Error
   2023-01-09T04:52:40.5879170Z 2023-01-09 04:52:40,587 INFO  
[okh.moc.MockWebServer] (MockWebServer /127.0.0.1:47526) MockWebServer[44583] 
received request: GET /api/v1/namespaces/test/pods HTTP/1.1 and responded: 
HTTP/1.1 200 OK
   2023-01-09T04:52:40.6751460Z 2023-01-09 04:52:40,662 INFO  
[org.apa.cam.com.kub.clu.loc.KubernetesLeadershipController] (Camel (camel-1) 
thread #1 - CamelKubernetesLeadershipController) Pod[follower] The cluster has 
no leaders for group ns. Trying to acquire the leadership...
   2023-01-09T04:52:40.7175080Z 2023-01-09 04:52:40,716 INFO  
[okh.moc.MockWebServer] (MockWebServer /127.0.0.1:47512) MockWebServer[44583] 
received request: POST /apis/coordination.k8s.io/v1/namespaces/test/leases 
HTTP/1.1 and responded: HTTP/1.1 201 OK
   2023-01-09T04:52:40.7185048Z 2023-01-09 04:52:40,718 INFO  
[org.apa.cam.com.kub.clu.loc.KubernetesLeadershipController] (Camel (camel-1) 
thread #1 - CamelKubernetesLeadershipController) Pod[leader] Leadership 
acquired by current pod with immediate effect
   2023-01-09T04:52:40.7229751Z 2023-01-09 04:52:40,722 INFO  
[okh.moc.MockWebServer] (MockWebServer /127.0.0.1:47512) MockWebServer[44583] 
received request: GET 
/apis/coordination.k8s.io/v1/namespaces/test/leases/leaders-ns HTTP/1.1 and 
responded: HTTP/1.1 200 OK
   2023-01-09T04:52:40.7231505Z 2023-01-09 04:52:40,722 INFO  
[okh.moc.MockWebServer] (MockWebServer /127.0.0.1:47526) MockWebServer[44583] 
received request: POST /apis/coordination.k8s.io/v1/namespaces/test/leases 
HTTP/1.1 and responded: HTTP/1.1 201 OK
   2023-01-09T04:52:40.7611885Z 2023-01-09 04:52:40,760 INFO  
[org.apa.cam.com.kub.clu.loc.KubernetesLeadershipController] (Camel (camel-1) 
thread #1 - CamelKubernetesLeadershipController) Pod[follower] Leadership 
acquired by current pod with immediate effect
   2023-01-09T04:52:40.7627882Z 2023-01-09 04:52:40,762 INFO  
[okh.moc.MockWebServer] (MockWebServer /127.0.0.1:47526) MockWebServer[44583] 
received request: GET 
/apis/coordination.k8s.io/v1/namespaces/test/leases/leaders-ns HTTP/1.1 and 
responded: HTTP/1.1 200 OK
   2023-01-09T04:52:40.7662245Z 2023-01-09 04:52:40,765 INFO  
[okh.moc.MockWebServer] (MockWebServer /127.0.0.1:47512) MockWebServer[44583] 
received request: GET /api/v1/namespaces/test/pods HTTP/1.1 and responded: 
HTTP/1.1 200 OK
   2023-01-09T04:52:40.8057423Z 2023-01-09 04:52:40,805 INFO  
[okh.moc.MockWebServer] (MockWebServer /127.0.0.1:47526) MockWebServer[44583] 
received request: GET /api/v1/namespaces/test/pods HTTP/1.1 and responded: 
HTTP/1.1 200 OK
   2023-01-09T04:52:40.8116845Z 2023-01-09 04:52:40,811 INFO  
[okh.moc.MockWebServer] (MockWebServer /127.0.0.1:47512) MockWebServer[44583] 
received request: GET 
/apis/coordination.k8s.io/v1/namespaces/test/leases/leaders-ns HTTP/1.1 and 
responded: HTTP/1.1 200 OK
   2023-01-09T04:52:40.8140955Z 2023-01-09 04:52:40,813 INFO  
[org.apa.cam.com.kub.clu.loc.TimedLeaderNotifier] (Camel (camel-1) thread #2 - 
CamelKubernetesLeaderNotifier) The list of cluster members has changed: 
[leader, follower]
   2023-01-09T04:52:40.8496162Z 2023-01-09 04:52:40,849 INFO  
[org.apa.cam.com.kub.clu.loc.TimedLeaderNotifier] (Camel (camel-1) thread #2 - 
CamelKubernetesLeaderNotifier) The cluster has a new leader: Optional[follower]
   ```


-- 
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: commits-unsubscr...@camel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to