Skip to content

Deterministic order in GetSubpathDetail (same tie-order bug class as #256) #273

Description

@dborup

Follow-up to #261 (#256), from the review on #261, finding 1. GetSubpathDetail in cmd/server/store.go (around lines 11195–11214) is a sibling of the fixed rankSubpaths. It builds its list from map iteration and sorts on a single key, so tied entries come out in random order on each call. Apply the same fix: add a stable secondary key, plus a test with tied entries that is red before the fix, and a mutant check. This has not been re-verified on current master.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtype:bugSomething broken

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions