Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-76744

Drop command must fail on system collections

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0, 7.0.0-rc1
    • Affects Version/s: 7.0.0-rc0
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v7.0
    • Hide

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

      > use mydb
      > db.system.users.insertOne({ name: "Antonio" })
      > db.system.users.drop()
      
      Show
      The problem can be reproduced very simply with the following commands: > use mydb > db.system.users.insertOne({ name: "Antonio" }) > db.system.users.drop()
    • Sharding EMEA 2023-05-15
    • 137

      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.

            Assignee:
            antonio.fuschetto@mongodb.com Antonio Fuschetto
            Reporter:
            antonio.fuschetto@mongodb.com Antonio Fuschetto
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: