tokers commented on issue #769:
URL: 
https://github.com/apache/apisix-ingress-controller/issues/769#issuecomment-978728487


   I can give you some clues about this issue.
   
   When the controller gets the opportunity to be the new leader, it tries to 
add the cluster (name is `default`) again, but since the cluster was already 
there (added in its last term), the new one won't be added, and the controller 
will still use the old cluster, and in the old cluster, the `cacheSyncErr` was 
cached and will be used directly when calling `HasSynced`. So the controller 
won't enter the state for watching Kubernetes resources.
   
   A simple solution for this is destroyed the old cluster when it gives up the 
leader role.


-- 
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: notifications-unsubscr...@apisix.apache.org

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


Reply via email to