Allow mongod with embedded router to start up with existing shard identity document

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Catalog and Routing
    • CAR Team 2024-03-18
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Currently mongod with an embedded router opts-out of the call to initializeGlobalShardingState in _initializeShardingEnvironmentOnShardServer because, like the config-shard, on ordinary startup it sets up global sharding state like the Grid _before receiving any shard identity document insertion.

      However, if a shard identity doc is already present on startup, we will try and initialize global sharding awareness on mongod before this, so the opt-out is not correct in this case.

      We should order the initialization so that it is safe to be an embedded router node regardless of whether or not a shard identity document is present on startup.

            Assignee:
            Pol Pinol
            Reporter:
            George Wangensteen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: