We can get an IllegalChangeToExpectedDatabaseVersion error when we create a ScopedSetShardRole under runAggregateOnView() if the view dbVersion mismatches with the dbVersion of its linked collection. For instance, this could happen if there is a movePrimary running concurrently.
- is caused by
-
SERVER-81233 Prevent kickback to router when reading from views on unsplittable collections located on the db-primary
- Closed