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
Deterministic tie order in four more count-only sorts (node analytics, node/bulk health) #321
Follow-up to #319 (#273), from the review of #319. The same tie-order bug class as #256/#293/#273: count-only sorts over map iteration with no secondary key, so tied entries come out in a random order on each call. All of them are shown to the user.
Site
List
Cap
Frontend
cmd/server/node_analytics_summary.go:409
peerInteractions
20 (random cut)
public/node-analytics.js:152
cmd/server/node_analytics_summary.go:391
observerCoverage
none
public/node-analytics.js:249
cmd/server/store.go:10521
observerRows (GetNodeHealth)
none
public/live.js:2694
cmd/server/store.go:10353
observerRows (GetBulkHealth)
none
same shape
Lower priority, same shape: cmd/server/store.go:9569 (collisions) sorts on class order, then Appearances, with no final key.
The peerInteractions cap makes the first site the most visible. With ties at the cut-off, which peers are shown changes between calls, not just their order.
Activity
Merge pull request #325 from dborup/codex/issue-321-count-sort-ties
dborup commentedon Oct 7, 2026
Fixed by #325 (merged as
bf3151a4dc3c302c884ef922a43c4c92624fc8fc).