karmada
karmada copied to clipboard
Watch Request Blocked When Member Cluster Offline
What happened:
When the member cluster goes offline, there is a scenario where the client's Watch request gets blocked and does not receive pod events.
What you expected to happen:
Should we set a timeout: Set a reasonable timeout for cache.Watch() calls using context.WithTimeout or context.WithDeadline to control the operation time?
https://github.com/karmada-io/karmada/blob/master/pkg/search/proxy/store/multi_cluster_cache.go#L354
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
- Karmada version:
- kubectl-karmada or karmadactl version (the result of
kubectl-karmada version
orkarmadactl version
): - Others: