Handle leftover collections after chunk cleanup

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • CAR Team 2026-05-11
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      After SERVER-122633 completes the shard will proceed to do cleanup of leftover stale chunks. This however, leaves us with a potential problem once there are no more chunks present for the collection in the shard since non-dbPrimary shards do not store the chunkless shard id chunk.

      This breaks the invariant that a collection entry present in the durable catalog implies having at least 1 chunk.

            Assignee:
            Jordi Olivares Provencio
            Reporter:
            Jordi Olivares Provencio
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: