-
Notifications
You must be signed in to change notification settings - Fork 38.6k
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
GC should retry on patch error #47000
GC should retry on patch error #47000
Conversation
test? also I think the milestone goes on the issue. |
b164858
to
8bc4343
Compare
Added a unit test. @lavalamp PTAL. Thanks. |
8bc4343
to
a0a2e95
Compare
/release-note-none |
@k8s-bot pull-kubernetes-e2e-gce-etcd3 test this |
/lgtm |
It is not clear to me why this change causes a retry--I was hoping the test would demonstrate the retry behavior but I am still confused :) |
attemptToOrphanWorker adds the item back in the queue if orphanDependents returns an error. |
+1 on what @Kargakis said Regarding the test, it will be complicated to write a unit test to verify the queue status since we don't have a fake queue, so i just wrote the unit test to verify a proper error is returned by orphanDependents. |
FWIW, I wrote a similar test a while back for Recreate deployments: e2695d9 (check TestPodDeletionEnqueuesRecreateDeployment). |
@k8s-bot pull-kubernetes-e2e-kops-aws test this |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: caesarxuchao, kargakis, lavalamp Associated issue: 46998 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
/retest |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue (batch tested with PRs 47000, 47188, 47094, 47323, 47124) |
@caesarxuchao: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Fixing #46998.
This is fixing a bug, so applying the 1.7 milestone.