Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-86048

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

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

      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@mongodb.com Pol Pinol
            Reporter:
            george.wangensteen@mongodb.com George Wangensteen
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: