[SERVER-76744] Drop command must fail on system collections Created: 02/May/23  Updated: 29/Oct/23  Resolved: 09/May/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 7.0.0-rc0
Fix Version/s: 7.1.0-rc0, 7.0.0-rc1

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

Issue Links:
Backports
Depends
is depended on by SERVER-76936 Normalize error handling in case of n... Backlog
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.0
Steps To Reproduce:

The problem can be reproduced very simply with the following commands:

> use mydb
> db.system.users.insertOne({ name: "Antonio" })
> db.system.users.drop()

Sprint: Sharding EMEA 2023-05-15
Participants:
Linked BF Score: 137

 Description   

The drop operation on a collection with the name starting with system. gets stuck.

This is bug introduced in in 7.0.0-rc0 version by SERVER-70831. Previously, the operation would fail saying that that a system collection cannot be dropped.

The goal of this ticket is to restore the previous behavior by checking the collection name as part of the precondition checks of the coordinator.



 Comments   
Comment by Githook User [ 09/May/23 ]

Author:

{'name': 'Antonio Fuschetto', 'email': 'antonio.fuschetto@mongodb.com', 'username': 'afuschetto'}

Message: SERVER-76744 Drop command must fail on system collections
Branch: v7.0
https://github.com/mongodb/mongo/commit/a6ca8bd70ea8d7ecca75acf9ea6cb892e6aa38ac

Comment by Antonio Fuschetto [ 09/May/23 ]

Author:

{'name': 'Antonio Fuschetto', 'email': 'antonio.fuschetto@mongodb.com', 'username': 'afuschetto'}

Message: SERVER-76744 Drop command must fail on system collections
Branch: master
https://github.com/10gen/mongo/commit/75825b6618a887a76301b770e68c82077a84cb68

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