-
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:
- The collection is dropped.
- The upsert retries, finds no tracked collection, and targets the config server as unsharded.
- 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.
- 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.
- is related to
-
SERVER-53237 Make the ConfigServer support requests with Shard and Database Version
-
- Backlog
-
-
SERVER-133099 Add server parameter and allow to drop system.session for a sharded cluster
-
- Closed
-
- related to
-
SERVER-103297 Improve signaling method to flag requests to shards originating from sharding routers
-
- Backlog
-