Drop command must fail on system collections

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Antonio Fuschetto
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: