Repository navigation
fix: add id lock to fix map leak - #241
Open
ningmingxiao wants to merge 1 commit into
Open
ningmingxiao wants to merge 1 commit into
ningmingxiao wants to merge 1 commit into
Conversation
|
Independent reproduction, in case it helps this along. We hit this on Docker hosts where containers carry short-interval What the data looked like:
The only effective mitigations we found were lengthening the healthcheck interval or dropping the exec-based healthcheck entirely. Restarting dockerd or containerd does not release it, since shims outlive both. Would be good to see this land. |
Contributor
Author
|
ping @fuweid |
Contributor
Author
mxpv
approved these changes
Sep 23, 2026
Member
|
needs rebase |
ningmingxiao
force-pushed
the
fix_leak
branch
from
September 25, 2026 00:24
153e78a to
a3c7208
Compare
Contributor
Author
|
done thanks @mikebrow |
thaJeztah
reviewed
Sep 25, 2026
| } | ||
| return nil | ||
| } | ||
| lockID := fmt.Sprintf("%d", id) |
Member
There was a problem hiding this comment.
Can you use strconv.Itoa for these (here, and the other places it was added)? Saves some overhead, and will keep linters at bay.
Signed-off-by: 宁明晓10296073 <ning.mingxiao@zte.com.cn> Signed-off-by: ningmingxiao <ning.mingxiao@zte.com.cn>
ningmingxiao
force-pushed
the
fix_leak
branch
from
September 26, 2026 00:15
a3c7208 to
3645259
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixes / addresses containerd/containerd#13561