New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
client-go: don't wait too long after EventBroadcaster.Shutdown #115514
client-go: don't wait too long after EventBroadcaster.Shutdown #115514
Conversation
When Shutdown was called, delivery of each pending event would still be retried 12 times with a delay of ~10s between each retry. In apiserver integration tests that caused the goroutine to linger long after the corresponding apiserver of the test was shut down.
This PR may require API review. If so, when the changes are ready, complete the pre-review checklist and request an API review. Status of requested reviews is tracked in the API Review project. |
/lgtm |
LGTM label has been added. Git tree hash: 1ca310b6969851ee8ad1e018306663a4fd74f24a
|
/triage accepted |
/lgtm /priority important-longterm @pohly - thanks for making the change - can you please update the release-note? |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: pohly, wojtek-t The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind cleanup
/kind api-change
What this PR does / why we need it:
When Shutdown was called, delivery of each pending event would still be retried 12 times with a delay of ~10s between each retry. In apiserver integration tests that caused the goroutine to linger long after the corresponding apiserver of the test was shut down.
Special notes for your reviewer:
These goroutine can be seen in
go test -run='TestQuota$' ./test/integration/quota/
by setting a breakpoint inEtcdMain
.The leaked goroutines there come from this code:
kubernetes/pkg/controller/replicaset/replica_set.go
Lines 189 to 196 in 49ddc51
Does this PR introduce a user-facing change?
To be decided... empty for now as a reminder.
/cc @aojea