[SERVER-77261] Server allows renaming a “normal” collection to be system.buckets. Created: 18/May/23  Updated: 25/Oct/23

Status: Open
Project: Core Server
Component/s: None
Affects Version/s: 5.3.2, 6.0.6
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Felipe Gasper Assignee: Backlog - Storage Execution Team
Resolution: Unresolved Votes: 0
Labels: mongosync
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-78494 listCollections expects a renamed tim... Closed
is related to SERVER-77003 Allow renames of time-series collecti... Closed
Assigned Teams:
Storage Execution
Operating System: ALL
Steps To Reproduce:

replset [direct: primary] test> db.createCollection("mongosync.tmp.haha")
{ ok: 1 }
replset [direct: primary] test> db.mongosync.tmp.haha.renameCollection("system.buckets.haha")
{ ok: 1 }
replset [direct: primary] test> show tables
system.buckets.haha
system.views

Participants:

 Description   

The server seems to allow renaming into a system.buckets. collection name. This should probably be forbidden since there’s no good reason for it (and several bad ones).

I had hoped that this would obviate SERVER-77003, but since this wouldn’t allow the `timeseries` options that are needed for proper creation of system.buckets collections, we still need SERVER-77003.


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