mirror of https://github.com/k3s-io/k3s
![]() Automatic merge from submit-queue Fix leaking goroutines in watch cache Fixes #38670 which causes leaked goroutines in the API server. The root cause is: if the WatchServer timeout [fires](https://github.com/kubernetes/kubernetes/blob/master/pkg/apiserver/watch.go#L187-L188) when the `result` channel is full, `sendWatchCacheEvent` will be blocked on the write to the `result` even though `cacheWatch.Stop()` is [called](https://github.com/kubernetes/kubernetes/blob/master/pkg/apiserver/watch.go#L171), because WatchServer stops consuming the `result` channel after the timeout. Thanks to @krousey for identifying the problem. cc @mml @yujuhong |
||
---|---|---|
.. | ||
etcd | ||
etcd3 | ||
storagebackend | ||
testing | ||
BUILD | ||
OWNERS | ||
cacher.go | ||
cacher_test.go | ||
cacher_whitebox_test.go | ||
doc.go | ||
errors.go | ||
interfaces.go | ||
selection_predicate.go | ||
selection_predicate_test.go | ||
time_budget.go | ||
time_budget_test.go | ||
util.go | ||
util_test.go | ||
watch_cache.go | ||
watch_cache_test.go |