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

Remove check in dropCollectionCoordinator that prevents to drop a timeseries from its bucket namespace

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 8.0.0-rc0
    • Component/s: None
    • Labels:
      None
    • Catalog and Routing
    • ALL
    • 2

      A check in shardsvr_drop_collection_command prevents a user from dropping a timeseries using the "bucket" namespace for a tracked collection. After SERVER-83878 the constraint  has been relaxed and in case the registered collection is "unsplittable" the drop is possible. That was done to ensure feature parity with 7.0 where dropping a timeseries from it's bucket nss was possible for an unsharded collection.

      However, as part of SERVER-83878 it has been noticed it is possible to remove completely that check even for sharded collection as the collection will be removed successfully. 

      In general, that check is not safe as performed outside the ddl lock. Any shardCollection might occur after the check, causing the drop to remove the sharded collection.

       

            Assignee:
            backlog-server-catalog-and-routing [DO NOT USE] Backlog - Catalog and Routing
            Reporter:
            enrico.golfieri@mongodb.com Enrico Golfieri
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: