Merge pull request #55242 from sttts/sttts-stop-cache-deadlock

Automatic merge from submit-queue (batch tested with PRs 55331, 55272, 55228, 49763, 55242). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

client-go/tools/cache: fix possible deadlock when stopping a reflector

While getting Connection-Refused error, a reflector was retrying without stopping when the stopCh is closed.

The flaking TestCRD #54095 sometimes shows a deadlock in reflectors that should be shutdown, called from the storage cacher. So possibly this is related.

Kubernetes-commit: f34d3af809169007e7f474a26751ee675c0664ac
This commit is contained in:
Kubernetes Publisher 2017-11-08 17:13:31 -08:00
commit 7dc0693659
2 changed files with 87 additions and 80 deletions

160
Godeps/Godeps.json generated
View File

@ -372,323 +372,323 @@
}, },
{ {
"ImportPath": "k8s.io/api/admissionregistration/v1alpha1", "ImportPath": "k8s.io/api/admissionregistration/v1alpha1",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/api/apps/v1", "ImportPath": "k8s.io/api/apps/v1",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/api/apps/v1beta1", "ImportPath": "k8s.io/api/apps/v1beta1",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/api/apps/v1beta2", "ImportPath": "k8s.io/api/apps/v1beta2",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/api/authentication/v1", "ImportPath": "k8s.io/api/authentication/v1",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/api/authentication/v1beta1", "ImportPath": "k8s.io/api/authentication/v1beta1",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/api/authorization/v1", "ImportPath": "k8s.io/api/authorization/v1",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/api/authorization/v1beta1", "ImportPath": "k8s.io/api/authorization/v1beta1",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/api/autoscaling/v1", "ImportPath": "k8s.io/api/autoscaling/v1",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/api/autoscaling/v2beta1", "ImportPath": "k8s.io/api/autoscaling/v2beta1",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/api/batch/v1", "ImportPath": "k8s.io/api/batch/v1",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/api/batch/v1beta1", "ImportPath": "k8s.io/api/batch/v1beta1",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/api/batch/v2alpha1", "ImportPath": "k8s.io/api/batch/v2alpha1",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/api/certificates/v1beta1", "ImportPath": "k8s.io/api/certificates/v1beta1",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/api/core/v1", "ImportPath": "k8s.io/api/core/v1",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/api/extensions/v1beta1", "ImportPath": "k8s.io/api/extensions/v1beta1",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/api/imagepolicy/v1alpha1", "ImportPath": "k8s.io/api/imagepolicy/v1alpha1",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/api/networking/v1", "ImportPath": "k8s.io/api/networking/v1",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/api/policy/v1beta1", "ImportPath": "k8s.io/api/policy/v1beta1",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/api/rbac/v1", "ImportPath": "k8s.io/api/rbac/v1",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/api/rbac/v1alpha1", "ImportPath": "k8s.io/api/rbac/v1alpha1",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/api/rbac/v1beta1", "ImportPath": "k8s.io/api/rbac/v1beta1",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/api/scheduling/v1alpha1", "ImportPath": "k8s.io/api/scheduling/v1alpha1",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/api/settings/v1alpha1", "ImportPath": "k8s.io/api/settings/v1alpha1",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/api/storage/v1", "ImportPath": "k8s.io/api/storage/v1",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/api/storage/v1beta1", "ImportPath": "k8s.io/api/storage/v1beta1",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/api/equality", "ImportPath": "k8s.io/apimachinery/pkg/api/equality",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/api/errors", "ImportPath": "k8s.io/apimachinery/pkg/api/errors",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/api/meta", "ImportPath": "k8s.io/apimachinery/pkg/api/meta",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/api/resource", "ImportPath": "k8s.io/apimachinery/pkg/api/resource",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/api/testing", "ImportPath": "k8s.io/apimachinery/pkg/api/testing",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/api/testing/fuzzer", "ImportPath": "k8s.io/apimachinery/pkg/api/testing/fuzzer",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/api/testing/roundtrip", "ImportPath": "k8s.io/apimachinery/pkg/api/testing/roundtrip",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/apimachinery", "ImportPath": "k8s.io/apimachinery/pkg/apimachinery",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/apimachinery/announced", "ImportPath": "k8s.io/apimachinery/pkg/apimachinery/announced",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/apimachinery/registered", "ImportPath": "k8s.io/apimachinery/pkg/apimachinery/registered",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/fuzzer", "ImportPath": "k8s.io/apimachinery/pkg/apis/meta/fuzzer",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/internalversion", "ImportPath": "k8s.io/apimachinery/pkg/apis/meta/internalversion",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1", "ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured", "ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1alpha1", "ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1alpha1",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/conversion", "ImportPath": "k8s.io/apimachinery/pkg/conversion",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/conversion/queryparams", "ImportPath": "k8s.io/apimachinery/pkg/conversion/queryparams",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/conversion/unstructured", "ImportPath": "k8s.io/apimachinery/pkg/conversion/unstructured",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/fields", "ImportPath": "k8s.io/apimachinery/pkg/fields",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/labels", "ImportPath": "k8s.io/apimachinery/pkg/labels",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/runtime", "ImportPath": "k8s.io/apimachinery/pkg/runtime",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/runtime/schema", "ImportPath": "k8s.io/apimachinery/pkg/runtime/schema",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer", "ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/json", "ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/json",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/protobuf", "ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/protobuf",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/recognizer", "ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/recognizer",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/streaming", "ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/streaming",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/versioning", "ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/versioning",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/selection", "ImportPath": "k8s.io/apimachinery/pkg/selection",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/types", "ImportPath": "k8s.io/apimachinery/pkg/types",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/cache", "ImportPath": "k8s.io/apimachinery/pkg/util/cache",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/clock", "ImportPath": "k8s.io/apimachinery/pkg/util/clock",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/diff", "ImportPath": "k8s.io/apimachinery/pkg/util/diff",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/errors", "ImportPath": "k8s.io/apimachinery/pkg/util/errors",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/framer", "ImportPath": "k8s.io/apimachinery/pkg/util/framer",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/httpstream", "ImportPath": "k8s.io/apimachinery/pkg/util/httpstream",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/httpstream/spdy", "ImportPath": "k8s.io/apimachinery/pkg/util/httpstream/spdy",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/intstr", "ImportPath": "k8s.io/apimachinery/pkg/util/intstr",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/json", "ImportPath": "k8s.io/apimachinery/pkg/util/json",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/mergepatch", "ImportPath": "k8s.io/apimachinery/pkg/util/mergepatch",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/net", "ImportPath": "k8s.io/apimachinery/pkg/util/net",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/remotecommand", "ImportPath": "k8s.io/apimachinery/pkg/util/remotecommand",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/runtime", "ImportPath": "k8s.io/apimachinery/pkg/util/runtime",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/sets", "ImportPath": "k8s.io/apimachinery/pkg/util/sets",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/strategicpatch", "ImportPath": "k8s.io/apimachinery/pkg/util/strategicpatch",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/validation", "ImportPath": "k8s.io/apimachinery/pkg/util/validation",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/validation/field", "ImportPath": "k8s.io/apimachinery/pkg/util/validation/field",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/wait", "ImportPath": "k8s.io/apimachinery/pkg/util/wait",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/yaml", "ImportPath": "k8s.io/apimachinery/pkg/util/yaml",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/version", "ImportPath": "k8s.io/apimachinery/pkg/version",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/watch", "ImportPath": "k8s.io/apimachinery/pkg/watch",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/json", "ImportPath": "k8s.io/apimachinery/third_party/forked/golang/json",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/netutil", "ImportPath": "k8s.io/apimachinery/third_party/forked/golang/netutil",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/reflect", "ImportPath": "k8s.io/apimachinery/third_party/forked/golang/reflect",
"Rev": "43f9bc20869f96399b84f4f5e1bea50bc2c2eb48" "Rev": "730e5c0ee7923870b8bdde4eb3129da428be1d83"
}, },
{ {
"ImportPath": "k8s.io/kube-openapi/pkg/common", "ImportPath": "k8s.io/kube-openapi/pkg/common",

View File

@ -295,6 +295,13 @@ func (r *Reflector) ListAndWatch(stopCh <-chan struct{}) error {
}() }()
for { for {
// give the stopCh a chance to stop the loop, even in case of continue statements further down on errors
select {
case <-stopCh:
return nil
default:
}
timemoutseconds := int64(minWatchTimeout.Seconds() * (rand.Float64() + 1.0)) timemoutseconds := int64(minWatchTimeout.Seconds() * (rand.Float64() + 1.0))
options = metav1.ListOptions{ options = metav1.ListOptions{
ResourceVersion: resourceVersion, ResourceVersion: resourceVersion,