You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
admin replicate resync status: Throughput overflows once more than ~8.6 GiB is transferred #48
int64(time.Second) * ReplicatedSize is 1e9 × bytes. It overflows int64 once ReplicatedSize exceeds math.MaxInt64 / 1e9 ≈ 9.2e9 bytes (~8.6 GiB). L238 does the same with ReplicatedCount.
Throughput and IOPs now divide the counters by elapsed seconds as floating-point values, avoiding the overflowing int64 multiplication. The existing guard for nonpositive elapsed time is preserved. With the existing display rounding, 101 GiB in 95.5 seconds shows 1.1 GiB/s, and 847 GiB in 13h45m shows 18 MiB/s.
The new regression test checks the actual rendered status table across 12 cases: byte and object counters immediately below, at, and above the overflow boundary; both reported workloads; subsecond timing; zero counters; and zero/negative elapsed time. Four cases fail with the previous implementation; all 12 pass with the fix. Local tests across all Go packages, race checks, lint, vet, repository checks, and make install also pass.
Activity
Vonng commentedon Oct 26, 2026
Fixed in 49dd7df7, merged into
main.Throughput and IOPs now divide the counters by elapsed seconds as floating-point values, avoiding the overflowing
int64multiplication. The existing guard for nonpositive elapsed time is preserved. With the existing display rounding, 101 GiB in 95.5 seconds shows1.1 GiB/s, and 847 GiB in 13h45m shows18 MiB/s.The new regression test checks the actual rendered status table across 12 cases: byte and object counters immediately below, at, and above the overflow boundary; both reported workloads; subsecond timing; zero counters; and zero/negative elapsed time. Four cases fail with the previous implementation; all 12 pass with the fix. Local tests across all Go packages, race checks, lint, vet, repository checks, and
make installalso pass.GitHub CI passed for this commit: Go tests on Linux/macOS/Windows, including the SILO functional suite on Linux, cross-compilation, vulnerability analysis, and release pipeline validation.
This fix will ship in the next release cycle. It is fixed in
mainbut is not yet included in a published release. Closing as completed.