ChunkVersion <=> treats identical special/unset versions as unordered

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • ALL
    • CAR Team 2026-05-11, CAR Team 2026-05-25
    • 🟄 DDL, 🟦 Shard Catalog
    • None
    • None
    • None
    • None
    • None
    • None

      ChunkVersion::operator==Ā considers identicalĀ UNTRACKED,Ā IGNORED, andĀ {epoch,timestamp,0,0}Ā versions equal, butĀ operator<=>Ā currently returnsĀ std::partial_ordering::unordered for those same pairs.

      This creates inconsistent comparison semantics and can cause callers that use the three-way comparison to treat equal shard placement versions as non-comparable, triggering pessimistic stale/recovery handling. Identical versions should compare asĀ equivalent; only genuinely non-comparable version states should returnĀ unordered.

            Assignee:
            Unassigned
            Reporter:
            Pol Pinol
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: