[SERVER-52832] creating a time-series collection with the same name as existing collection/view returns confusing error codes Created: 12/Nov/20  Updated: 29/Oct/23  Resolved: 16/Nov/20

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Bug Priority: Major - P3
Reporter: Benety Goh Assignee: Benety Goh
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Problem/Incident
Related
related to SERVER-52855 fix testTimeseriesNamespaceExists tes... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2020-11-30
Participants:
Linked BF Score: 38

 Description   

For an existing view, we get CommandNotSupportedOnView.
For an existing collection, we get the code 17399.

It would be nice to have a less confusing error code in these situations.



 Comments   
Comment by Githook User [ 15/Nov/20 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-52832 fix error codes for catalog conflicts during time-series collection creation
Branch: master
https://github.com/mongodb/mongo/commit/6857bf37bc9cfe412f3e764c8d16991203b8552e

Comment by Githook User [ 14/Nov/20 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-52832 move time_series_create.js to noPassthroughWithMongod
Branch: master
https://github.com/mongodb/mongo/commit/31881ba469ec7e4e0bd9c8de18912471be07f2e1

Comment by Githook User [ 13/Nov/20 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: Revert "SERVER-52832 fix error codes for catalog conflicts during time-series collection creation"

This reverts commit 31a7ccd430117935a3582775690c426624a6338d.
Branch: master
https://github.com/mongodb/mongo/commit/9e91eac734db8840a9190f4d5bf9a5c320b3ab28

Comment by Githook User [ 13/Nov/20 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-52832 fix error codes for catalog conflicts during time-series collection creation
Branch: master
https://github.com/mongodb/mongo/commit/31a7ccd430117935a3582775690c426624a6338d

Comment by Githook User [ 12/Nov/20 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-52832 add test for time-series collection namespace conflicts
Branch: master
https://github.com/mongodb/mongo/commit/d78a7020f80d9a10b3fc5ba289841b3a97538582

Generated at Thu Feb 08 05:29:08 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.