Skip to content
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

[release/1.7] Cumulative stats can't decrease #10670

Merged

Conversation

jsturtevant
Copy link
Contributor

cherry-pick of f6677a4

During removal of the container a stat value might be reported as zero; in this case the caluclation could end up with an extremely large number.  If the cumulative stat decreases report zero.

Signed-off-by: James Sturtevant <jstur@microsoft.com>
(cherry picked from commit f6677a4)
Signed-off-by: James Sturtevant <jstur@microsoft.com>
Signed-off-by: James Sturtevant <jstur@microsoft.com>
@jsturtevant
Copy link
Contributor Author

xref #10652

@dosubot dosubot bot added the area/cri Container Runtime Interface (CRI) label Sep 3, 2024
@samuelkarp samuelkarp changed the title [Release/1.7] Cumulative stats can't decrease [release/1.7] Cumulative stats can't decrease Sep 3, 2024
@jsturtevant
Copy link
Contributor Author

/test pull-containerd-node-e2e-1-7

@jsturtevant
Copy link
Contributor Author

@cpuguy83

@samuelkarp samuelkarp merged commit eb52ab6 into containerd:release/1.7 Sep 3, 2024
58 checks passed

Choose a reason for hiding this comment

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

pkg/cri/sbserver/container_stats_list_test.go

Choose a reason for hiding this comment

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

pkg/cri/sbserver/container_stats_list_test.go

Choose a reason for hiding this comment

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

pkg/cri/server/container_stats_list.go

Choose a reason for hiding this comment

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

pkg/cri/server/container_stats_list_test.go

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/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants