-
Notifications
You must be signed in to change notification settings - Fork 42k
job controller: don't mutate shared cache object #100553
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
Conversation
Signed-off-by: Adhityaa Chandrasekar <[email protected]>
Signed-off-by: Adhityaa Chandrasekar <[email protected]>
|
/retest |
|
/milestone v1.21 since the issue being solved by this PR is in the milestone and is critical urgent |
|
/lgtm wow, good catch. |
|
We should backport this as far back as we can |
|
The following mutation was triggered and detected by the feature gate=true, suspend=true->false subtest: http://ix.io/2U3u/diff As you can see the mutation is entirely within the .status.conditions[0]
These are just possible hypotheses, I'm not 100% sure. |
soltysh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
|
+1 to cherrypicking |
saschagrunert
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good, let's wait for this PR before cutting v1.21.0-rc.0 (kubernetes/sig-release#1489)
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: adtac, saschagrunert, soltysh The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/test pull-kubernetes-e2e-kind |
|
/retest |
@adtac can you take care to backport this PR to the affected versions? |
|
@ialidzhikov could you handle this? See https://github.com/kubernetes/community/blob/master/contributors/devel/sig-release/cherry-picks.md for instructions |
|
I'll do this tomorrow 👍 |
|
/triage accepted |
What type of PR is this?
/kind bug
/kind failing-test
What this PR does / why we need it:
The Job controller has been mutating the shared cache for a loooong time, but I guess no one noticed this. When I tried to reproduce the failing integration test report #100551 locally, after several hours of very frustrating debugging, I noticed the mutation detector catching this bug. I believe this is also the true root cause of this bug, so to confirm this, I've modified the TestSuspendJob integration test to run all subtests in pre-submit (previously, only the first subtest was run in pre-submit, the others were run in post-submit). If this PR's CI signals are green, we should be good.
Which issue(s) this PR fixes:
Fixes #100551
Special notes for your reviewer:
/cc @alculquicondor @soltysh @ahg-g
/sig apps
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: