[SERVER-86048] Allow mongod with embedded router to start up with existing shard identity document Created: 01/Feb/24  Updated: 01/Feb/24

Status: Open
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: George Wangensteen Assignee: Backlog - Catalog and Routing
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Catalog and Routing
Operating System: ALL
Participants:

 Description   

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.


Generated at Thu Feb 08 06:59:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.