-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 5.0.7, 5.3.0-rc4, 6.0.0-rc7
-
Component/s: None
-
Fully Compatible
-
ALL
-
v6.1, v6.0, v5.0
-
Sharding EMEA 2022-10-03, Sharding EMEA 2022-10-17, Sharding EMEA 2022-10-31
Renaming a view a is not supported and should return CommandNotSupportedOnView while this is the case on replica set and standalone it is not on sharded cluster.
In fact, in sharded cluster, we return NamespaceNotFound error instead of CommandNotSupportedOnView.
This is because before to check if the nss is a view we throw NamespaceNotFound if the collection is not present in the local catalog
As part of this ticket we should also add test coverage for renaming view on sharded cluster.
- related to
-
SERVER-78217 Renaming view return wrong error on sharded cluster (2nd attempt)
- Closed