Skip to content

[9.0.1] Fix overflow in network metrics counters (https://github.com/bazelbuild/bazel/pull/28856)#28864

Merged
iancha1992 merged 1 commit intobazelbuild:release-9.0.1from
bazel-io:cp28813-9.0.1
Mar 3, 2026
Merged

[9.0.1] Fix overflow in network metrics counters (https://github.com/bazelbuild/bazel/pull/28856)#28864
iancha1992 merged 1 commit intobazelbuild:release-9.0.1from
bazel-io:cp28813-9.0.1

Conversation

@bazel-io
Copy link
Member

@bazel-io bazel-io commented Mar 3, 2026

This was broken in d34d638. On macOS
subsequent network updates can reset the counters, which resulted in
overflow. Now if the new value is lower we just replace it with that.
This should be harmless for the Linux use case where this should never
be the case.

Fixes #28813

Closes #28856.

PiperOrigin-RevId: 877956215
Change-Id: Ic7667494c19fe854edcc7bc8df4b845214484086

Commit 6ce9065

This was broken in d34d638. On macOS
subsequent network updates can reset the counters, which resulted in
overflow. Now if the new value is lower we just replace it with that.
This should be harmless for the Linux use case where this should never
be the case.

Fixes bazelbuild#28813

Closes bazelbuild#28856.

PiperOrigin-RevId: 877956215
Change-Id: Ic7667494c19fe854edcc7bc8df4b845214484086
@bazel-io bazel-io requested a review from a team as a code owner March 3, 2026 16:21
@bazel-io bazel-io added team-Performance Issues for Performance teams awaiting-review PR is awaiting review from an assigned reviewer labels Mar 3, 2026
@iancha1992 iancha1992 enabled auto-merge March 3, 2026 17:26
@iancha1992 iancha1992 added this pull request to the merge queue Mar 3, 2026
Merged via the queue into bazelbuild:release-9.0.1 with commit edb8c6e Mar 3, 2026
46 checks passed
@github-actions github-actions bot removed the awaiting-review PR is awaiting review from an assigned reviewer label Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team-Performance Issues for Performance teams

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants