Files
kubernetes/pkg/storage
Kubernetes Submit Queue f02c8e47bc Merge pull request #38669 from caesarxuchao/fix-cacher
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
2016-12-13 00:43:08 -08:00
..
2016-12-12 13:30:07 -08:00
2016-12-12 13:30:07 -08:00
2016-12-12 13:30:07 -08:00
2016-12-12 13:30:07 -08:00
2016-12-03 19:10:46 -05:00
2016-07-16 13:48:21 -04:00
2016-05-25 21:13:10 -07:00