Repository navigation
Revert the Forget call that was happening on every Certificates and Orders sync - #4271
Conversation
|
After tonight's biweekly dev meeting, @wallrj asked the team why we would not accept the I thus suggest we revert the untested |
f03d48f to
eed2e00
Compare
Forget call that was happening on every Certificates and Orders sync
cea2cb8 to
0864a58
Compare
This reverts commit 641960b. The reason we decided to revert this is that we are unsure about the implications of adding the scheduledWorkQueue.Forget call. The new Forget call is left untested, and it makes us nervous not to know exactly if it works as intended. The "Forget" memory leak that we are reverting now is the cause of a tiny fraction of the overall memory leakage that was fixed in the PR in the scheduler itself. Reverting this means that some goroutines will be leaked, but only when a Certificate gets removed and never recreated with the same name. Signed-off-by: Maël Valais <[email protected]>
0864a58 to
e4f981d
Compare
| // We are writting our own time.AfterFunc to be able to mock the clock. The | ||
| // cancel function can be called concurrently. |
There was a problem hiding this comment.
| // We are writting our own time.AfterFunc to be able to mock the clock. The | |
| // cancel function can be called concurrently. | |
| // We are writing our own time.AfterFunc to be able to mock the clock. The | |
| // cancel function can be called concurrently. |
How come this function moved?
There was a problem hiding this comment.
This PR is just the result of:
git revert 641960b666e94b8f592652f14f7b1fc313c7e97b(I checked it was the same)
The original commit moved the function, so the revert moves it back.
SgtCoDFish
left a comment
There was a problem hiding this comment.
/lgtm
Confirmed this is the result of git revert 641960b666e94b8f592652f14f7b1fc313c7e97b
It'd be nice to not re-add the spelling mistake in the comment, but I think it's valuable to make the revert the inverse of the original commit; it makes it simpler to reason about I think.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: maelvls, SgtCoDFish 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-cert-manager-bazel |
As pointed out by @munnerz, we feel not very confident in back-porting #4233 knowing thatForgetis called on all three event types (Deleted,Updated,Added). We had a discussion about that with @irbekrm. I changed this in f03d48f, where the only event on why we runForgetisDeleted.Why are we reverting 641960b?
After tonight's biweekly dev meeting, @wallrj asked the team why we would not accept backporting the
Forgetfix (641960b) in 1.4.2 and 1.3.2 but still accept it in 1.5.The team agrees on the fact that it needs more testing (since it is not tested at all). I thus suggest we revert the untested
Forgetchange that was merged.The "Forget" memory leak that we are reverting now is the cause of a tiny fraction of the overall memory leakage that was fixed in the PR in the scheduler itself. Reverting this means that some goroutines will be leaked, but only when a Certificate gets removed and never recreated with the same name.
Which commit should still be backported to 1.4.2 and 1.3.2?
Only 2 out of the 3 commits of #4233 should be backported in that order:
/release-note-none
/kind cleanup