Skip to content

Add IsNotFound case to ListPodSandboxStats#10023

Merged
fuweid merged 1 commit intocontainerd:mainfrom
dcantah:liststats-notfound
Apr 2, 2024
Merged

Add IsNotFound case to ListPodSandboxStats#10023
fuweid merged 1 commit intocontainerd:mainfrom
dcantah:liststats-notfound

Conversation

@dcantah
Copy link
Copy Markdown
Member

@dcantah dcantah commented Mar 31, 2024

Should hopefully fix #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.

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]>
Copy link
Copy Markdown
Member

@fuweid fuweid left a comment

Choose a reason for hiding this comment

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

LGTM

REF: #9897 (comment)

@estesp estesp added this pull request to the merge queue Apr 1, 2024
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 1, 2024
@mxpv mxpv added this pull request to the merge queue Apr 1, 2024
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 1, 2024
@fuweid fuweid added this pull request to the merge queue Apr 2, 2024
Merged via the queue into containerd:main with commit 4c5f2bc Apr 2, 2024
@dims
Copy link
Copy Markdown
Member

dims commented Apr 2, 2024

thanks @dcantah

@dims
Copy link
Copy Markdown
Member

dims commented Apr 2, 2024

@dcantah backports too please? thanks!

@dcantah
Copy link
Copy Markdown
Member Author

dcantah commented Apr 2, 2024

Will do! Was waiting for checkin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[cri] ListPodSandboxStats should skip sandboxes whose tasks are missing

6 participants