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

   ### Bug description
   
   We have from time to time a problem with our master election via kubernetes. 
We are currently on Camel Quarkus 3.8.3 and Quarkus 3.8.6 LTS. There is no 
special configuration of the master election, just defaults:
   
   ´´´
   quarkus.camel.cluster.kubernetes.enabled=true
   ´´´
   
   Initially the application works as charm, but later it loses the leadership 
and there is no pod with it. At this point we do see in Log following messages:
   
   ´´´pod1 (v26rk)
   2024-11-04 13:07:12,199 INFO  
[org.apa.cam.com.kub.clu.loc.TimedLeaderNotifier] (Camel (camel-1) thread #8 - 
CamelKubernetesLeaderNotifier) The cluster has a new leader: Optional.empty
   2024-11-04 13:07:12,200 INFO  [org.apa.cam.com.qua.QuartzEndpoint] (Camel 
(camel-1) thread #8 - CamelKubernetesLeaderNotifier) Pausing trigger ...
   2024-11-04 13:07:12,200 INFO  [org.apa.cam.com.qua.QuartzEndpoint] (Camel 
(camel-1) thread #8 - CamelKubernetesLeaderNotifier) Deleting job ...
   ´´´
   
   ´´´pod2 (t5bt5)
   2024-11-04 13:12:13,190 WARN  
[org.apa.cam.com.kub.clu.loc.KubernetesLeadershipController] (Camel (camel-1) 
thread #2 - CamelKubernetesLeadershipController) Pod[pod2-985884674-t5bt5] 
Unable to retrieve the current lease resource my-lease for group my-service 
from Kubernetes
   2024-11-04 13:52:15,345 INFO  
[org.apa.cam.com.kub.clu.loc.TimedLeaderNotifier] (Camel (camel-1) thread #8 - 
CamelKubernetesLeaderNotifier) The cluster has a new leader: Optional.empty
   2024-11-04 13:52:15,355 INFO  
[org.apa.cam.com.kub.clu.loc.TimedLeaderNotifier] (Camel (camel-1) thread #8 - 
CamelKubernetesLeaderNotifier) The cluster has a new leader: 
Optional[pod1-985884674-v26rk]
   ´´´
   
   After new deployment everything works again. I have absolutely no idea where 
the bug occurs, that's the reason why i'm trying to report it here. Any ideas? 
Would really appreciate.
   
   Thanks a lot
   Miro


-- 
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]

Reply via email to