ExportXMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • ALL
    • CAR Team 2026-11-09, CAR Team 2026-11-23, CAR Team 2026-12-07
    • 🟦 Shard Catalog
    • None
    • None
    • None
    • None
    • None
    • None

      SERVER-133099 introduced distributed drop of config.system.sessions, tested by a continuous background hook. Subsequent refreshes are expected to recreate the collection through coordinated creation, which forces sessions to be sharded with the required defaults.

      However, an in-flight sessions-refresh upsert can race with the drop:

      1. The collection is dropped.
      2. The upsert retries, finds no tracked collection, and targets the config server as unsharded.
      3. Targeting an untracked collection in the config database omits both routing versions (see SERVER-53237). The write path consequently permits local implicit creation, bypassing coordinated creation.
      4. A later refresh recreates the sharded collection on a data shard, leaving two incarnations with different UUIDs.

      Subsequent writes follow the tracked collection's routing, but the leftover config-server copy causes metadata inconsistencies.

      Prevent local implicit creation of sessions on sharded clusters while preserving ordinary replica-set behavior.

            Assignee:
            Enrico Golfieri
            Reporter:
            Enrico Golfieri
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: