-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Sharding
-
Fully Compatible
-
ALL
-
Sharding 2020-08-10
-
7
onShardVersionMismatch possibly triggers a recovery of the collection's shard version.
Calling onShardVersionMismatch with a namespace corresponding to a view doesn't make sense because the view is not versioned. For this reason we correctly throw an error if this happens. On the other hand during the recovery of the collection's shard version, it is possible that a view is created for the same namespace, thus it is not correct to throw an CommandNotSupportedOnView error on the exit snippet of the recoverRefreshShardVersion() function.
I guess the fix would be as simple as changing kViewsForbidden to kViewsPermitted here.
- causes
-
SERVER-50453 Handle NSS renaming when checking shard version in drop collection
- Closed
- is caused by
-
SERVER-48394 Operations on views should not reach onShardVersionMismatch
- Closed