Skip to content

[release/1.7] Fix ListPodSandboxStats to skip sandboxes with missing tasks#10042

Merged
mxpv merged 1 commit intocontainerd:release/1.7from
dcantah:liststats-1.7
Apr 7, 2024
Merged

[release/1.7] Fix ListPodSandboxStats to skip sandboxes with missing tasks#10042
mxpv merged 1 commit intocontainerd:release/1.7from
dcantah:liststats-1.7

Conversation

@dcantah
Copy link
Copy Markdown
Member

@dcantah dcantah commented Apr 5, 2024

Original description

Fixes #10013. It seems we can end up in a spot where the sandbox store still has a listing for a pod, whereas containerds underlying store has removed it. It might be better to shield the caller (k8s) from these transient errors.

(cherry picked from commit 2474a99)

Fixes containerd#10013. It seems we can end up in a spot where the sandbox store still
has a listing for a pod, whereas containerds underlying store has removed it.
It might be better to shield the caller (k8s) from these transient errors.

Signed-off-by: Danny Canter <[email protected]>
(cherry picked from commit 2474a99)
Signed-off-by: Danny Canter <[email protected]>
@dcantah dcantah requested a review from dims April 5, 2024 18:36
Copy link
Copy Markdown
Member

@dims dims left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mxpv mxpv merged commit 2e4d2e1 into containerd:release/1.7 Apr 7, 2024
@dmcgowan dmcgowan changed the title [release/1.7] Add IsNotFound case to ListPodSandboxStats [release/1.7] Fix ListPodSandboxStats to skip sandboxes with missing tasks Apr 25, 2024
@dmcgowan dmcgowan added impact/changelog area/cri Container Runtime Interface (CRI) labels Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/cri Container Runtime Interface (CRI) impact/changelog size/XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants