Skip to content

[release/1.6] Cumulative stats can't decrease#10671

Merged
samuelkarp merged 1 commit intocontainerd:release/1.6from
jsturtevant:nano-calc-backport-1.6
Sep 3, 2024
Merged

[release/1.6] Cumulative stats can't decrease#10671
samuelkarp merged 1 commit intocontainerd:release/1.6from
jsturtevant:nano-calc-backport-1.6

Conversation

@jsturtevant
Copy link
Copy Markdown
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 <[email protected]>
(cherry picked from commit f6677a4)
Signed-off-by: James Sturtevant <[email protected]>
@dosubot dosubot Bot added the area/cri Container Runtime Interface (CRI) label Sep 3, 2024
@samuelkarp samuelkarp changed the title [Release/1.6] Cumulative stats can't decrease [release/1.6] Cumulative stats can't decrease Sep 3, 2024
@jsturtevant
Copy link
Copy Markdown
Contributor Author

xref #10652

@samuelkarp samuelkarp merged commit e1f05bf into containerd:release/1.6 Sep 3, 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/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants