[SERVER-78217] Renaming view return wrong error on sharded cluster (2nd attempt) Created: 19/Jun/23  Updated: 29/Oct/23  Resolved: 17/Jul/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 7.1.0-rc0, 6.0.6, 5.0.18, 7.0.0-rc4
Fix Version/s: 7.1.0-rc0, 7.0.0-rc8, 6.0.9, 7.0.2, 5.0.22

Type: Bug Priority: Major - P3
Reporter: Tommaso Tocci Assignee: Enrico Golfieri
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Problem/Incident
Related
is related to SERVER-66744 Renaming view return wrong error on s... Closed
Assigned Teams:
Sharding EMEA
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.0, v6.0, v5.0
Sprint: Sharding EMEA 2023-06-26, Sharding EMEA 2023-07-10, Sharding EMEA 2023-07-24
Participants:
Linked BF Score: 35

 Description   

In SERVER-66744 we did a first attempt to fix this. Unfortunately the returned errors are not always the same between sharded cluster and replicaset.

In particular in sharded clusters renaming a collection to a namespace for which already exists a view should return NamespaceExists instead of CommandNotSupportedOnView.

Moreover test cases for this should be placed in a core test rather than sharding/rename.js since the bheaviour should be exactly the same between replicaset and sharded cluster.



 Comments   
Comment by Githook User [ 06/Sep/23 ]

Author:

{'name': 'Enrico', 'email': 'enrico.golfieri@mongodb.com', 'username': 'enricogolfieri'}

Message: SERVER-78217 Renaming view return wrong error on sharded cluster (cherry-picked from commit 86118cef805f882dc5442b2a7928367efadebeaa)
Branch: v5.0
https://github.com/mongodb/mongo/commit/a84088b7f00b84a05c056eb64feef5d8f39206c6

Comment by Githook User [ 23/Aug/23 ]

Author:

{'name': 'Enrico', 'email': 'enrico.golfieri@mongodb.com', 'username': 'enricogolfieri'}

Message: SERVER-78217 Renaming view return wrong error on sharded cluster - part 2

(cherry-picked from commit 86118cef805f882dc5442b2a7928367efadebeaa)
Branch: v7.0
https://github.com/mongodb/mongo/commit/19347b03d69882280cdeab76bf3c2675e5ab0122

Comment by Githook User [ 22/Aug/23 ]

Author:

{'name': 'Enrico', 'email': 'enrico.golfieri@mongodb.com', 'username': 'enricogolfieri'}

Message: Revert "SERVER-78217 Renaming view return wrong error on sharded cluster - part 2 (cherry-picked from commit 86118cef805f882dc5442b2a7928367efadebeaa)" This reverts commit 06d394ce79586866024ee5012366deef32e23bec.
Branch: v7.0
https://github.com/mongodb/mongo/commit/df0cb821b03200c3de5475bd095675e782f9e35a

Comment by Githook User [ 17/Aug/23 ]

Author:

{'name': 'Enrico', 'email': 'enrico.golfieri@mongodb.com', 'username': 'enricogolfieri'}

Message: SERVER-78217 Renaming view return wrong error on sharded cluster - part 2 (cherry-picked from commit 86118cef805f882dc5442b2a7928367efadebeaa)
Branch: v7.0
https://github.com/mongodb/mongo/commit/06d394ce79586866024ee5012366deef32e23bec

Comment by Githook User [ 27/Jul/23 ]

Author:

{'name': 'Enrico', 'email': 'enrico.golfieri@mongodb.com', 'username': 'enricogolfieri'}

Message: SERVER-78217 Renaming view return wrong error on sharded cluster (cherry-picked from commit 5eef15836a094a068b79d59f167e00ddc96eaa59)
Branch: v6.0
https://github.com/mongodb/mongo/commit/c2a671706e6c811f2f837cb994ff4a66f8ea0ab9

Comment by Githook User [ 17/Jul/23 ]

Author:

{'name': 'Enrico', 'email': 'enrico.golfieri@mongodb.com', 'username': 'enricogolfieri'}

Message: SERVER-78217 Renaming view return wrong error on sharded cluster (cherry-picked from commit 5eef15836a094a068b79d59f167e00ddc96eaa59)
Branch: v7.0
https://github.com/mongodb/mongo/commit/11b9cb7ba7d1f9001a50d7915bf4258171fb49e0

Comment by Githook User [ 17/Jul/23 ]

Author:

{'name': 'Enrico', 'email': 'enrico.golfieri@mongodb.com', 'username': 'enricogolfieri'}

Message: SERVER-78217 renaming view return wrong error on sharded cluster (2nd attempt)
Branch: master
https://github.com/mongodb/mongo/commit/5eef15836a094a068b79d59f167e00ddc96eaa59

Comment by Githook User [ 13/Jul/23 ]

Author:

{'name': 'Sviatlana Zuiko', 'email': 'sviatlana.zuiko@mongodb.com', 'username': 'szuiko'}

Message: Revert "SERVER-78217 Renaming view return wrong error on sharded cluster (2nd attempt)"

This reverts commit 86118cef805f882dc5442b2a7928367efadebeaa.
Branch: master
https://github.com/mongodb/mongo/commit/49deaa4680ad879a1c79901a4dfeb3f7b013c4c4

Comment by Githook User [ 12/Jul/23 ]

Author:

{'name': 'Enrico', 'email': 'enrico.golfieri@mongodb.com', 'username': 'enricogolfieri'}

Message: SERVER-78217 Renaming view return wrong error on sharded cluster (2nd attempt)
Branch: master
https://github.com/mongodb/mongo/commit/86118cef805f882dc5442b2a7928367efadebeaa

Generated at Thu Feb 08 06:37:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.