karmada icon indicating copy to clipboard operation
karmada copied to clipboard

Watch Request Blocked When Member Cluster Offline

Open xigang opened this issue 4 months ago • 11 comments

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 or karmadactl version):
  • Others:

xigang avatar Oct 11 '24 07:10 xigang