-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
ALL
-
Query Execution 2021-04-05
-
0
With the introduction of SERVER-49228 it is possible that we will attempt to register collection sharding state for a views underlying collection more than once, in the case that after the first registration we find that we our config state is uninitialized and need to reload / retry the command. This will trigger an invariant in OperationShardingState::initializeClientRoutingVersion that confirms that the given namespace does not already exist in _shardVersionsChecked.
To address we should relax this invariant to only trigger when the registered collection is also registered as sharded.
- is related to
-
SERVER-49228 Remove kickback to mongos requirement for cluster view read when view is backed by unsharded collection
- Closed