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

Drop command must fail on system collections

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.1.0-rc0, 7.0.0-rc1
    • 7.0.0-rc0
    • 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

    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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: