-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Catalog and Routing
-
Fully Compatible
-
ALL
-
CAR Team 2025-04-14
-
200
-
None
-
3
-
None
-
None
-
None
-
None
-
None
-
None
Due to SERVER-102648, access to ShardingState is now restricted until it has been properly initialized. As a result, DatabaseShardingState fails during recovery because it tries to access the ShardId from ShardingState in the onConsistentDataAvailable method. This happens when reading from disk and installing the database metadata into DatabaseShardingState.
Within that method (specifically in setDbInfo), there's a validation that checks whether the ShardingState::ShardId matches the one in the DbVersion. This is not strictly necessary and is only a sanity check.
Therefore, I propose skipping this validation if ShardingState is not yet enabled—i.e., during recovery.
- is caused by
-
SERVER-102648 Handle uninitialized sharding components on secondaries
-
- Closed
-
- related to
-
SERVER-102648 Handle uninitialized sharding components on secondaries
-
- Closed
-