kubernetes/pkg/client/cache
Kubernetes Submit Queue 68ca638164 Merge pull request #35672 from zlabjp/fix-list-and-watch-goroutine-leak
Automatic merge from submit-queue

Fix resync goroutine leak in ListAndWatch

<!--  Thanks for sending a pull request!  Here are some tips for you:
1. If this is your first time, read our contributor guidelines https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md and developer guide https://github.com/kubernetes/kubernetes/blob/master/docs/devel/development.md
2. If you want *faster* PR reviews, read how: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/faster_reviews.md
3. Follow the instructions for writing a release note: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/pull-requests.md#release-notes
-->

**What this PR does / why we need it**:

This PR fixes resync goroutine leak in ListAndWatch function

**Which issue this PR fixes** _(optional, in `fixes #<issue number>(, #<issue_number>, ...)` format, will close that issue when PR gets merged)_: fixes #

fixes #35015

**Special notes for your reviewer**:

**Release note**:

<!--  Steps to write your release note:
1. Use the release-note-* labels to set the release note state (if you have access) 
2. Enter your extended release note in the below block; leaving it blank means using the PR title as the release note. If no release note is required, just write `NONE`. 
-->

``` release-note
```

Previously, we had no way to stop resync goroutine when ListAndWatch
returned.  goroutine leaked every time ListAndWatch returned, for
example, with error.  This commit adds another channel to signal that
resync goroutine should exit when ListAndWatch returns.
2016-12-05 02:41:33 -08:00
..
BUILD refactor: generated 2016-12-03 19:10:46 -05:00
controller_test.go dependencies: pkg/client 2016-11-23 15:53:09 -08:00
controller.go TODOs around stopping informers 2016-11-04 09:28:11 -07:00
delta_fifo_test.go DeltaFIFO should not report HasSynced until deletes are reported 2016-09-27 12:56:17 -04:00
delta_fifo.go DeltaFIFO should not report HasSynced until deletes are reported 2016-09-27 12:56:17 -04:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
expiration_cache_fakes.go Refactor util clock into it's own pkg 2016-07-28 02:29:04 -04:00
expiration_cache_test.go Refactor util clock into it's own pkg 2016-07-28 02:29:04 -04:00
expiration_cache.go Refactor util clock into it's own pkg 2016-07-28 02:29:04 -04:00
fake_custom_store.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
fifo_test.go Allow a FIFO client to requeue under lock 2016-07-10 17:32:21 -04:00
fifo.go Allow a FIFO client to requeue under lock 2016-07-10 17:32:21 -04:00
index_test.go dependencies: pkg/client 2016-11-23 15:53:09 -08:00
index.go Add handling empty index key that may cause panic issue 2016-07-27 21:44:22 +08:00
listers_core.go dependencies: pkg/client 2016-11-23 15:53:09 -08:00
listers_extensions.go refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
listers_rbac.go dependencies: pkg/client 2016-11-23 15:53:09 -08:00
listers_test.go refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
listers.go refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
listwatch_test.go refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
listwatch.go dependencies: pkg/client 2016-11-23 15:53:09 -08:00
mutation_detector_test.go dependencies: pkg/client 2016-11-23 15:53:09 -08:00
mutation_detector.go add optional mutation checks for shared informer cache 2016-10-18 09:19:38 -04:00
processor_listener_test.go move informer and controller to pkg/client/cache 2016-09-15 12:50:08 -07:00
reflector_test.go refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
reflector.go Merge pull request #35672 from zlabjp/fix-list-and-watch-goroutine-leak 2016-12-05 02:41:33 -08:00
shared_informer.go prevent panic if resourceversion checked early 2016-10-24 08:25:11 -04:00
store_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
store.go The notes are in reverse order 2016-07-07 14:45:16 +08:00
thread_safe_store.go Avoid sorting List when unnecessary 2016-08-22 15:07:17 +02:00
undelta_store_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
undelta_store.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00