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

Add optional flag to force closure of a bucket without meaningfully altering its contents

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Execution Team 2021-04-19

      The fastest way would likely be to add a new field `closed: true` to the bucket, triggering the OpObserver and clearing the bucket from the catalog. This would require a schema change for the buckets collection. It would result in an actual write to the document (which must be replicated), additional space usage, and encodes side effects on the BucketCatalog on this "no-op" op.

      A more sophisticated way, which would not require any document alteration, replication, or encoded side effects, would be to introduce a new administrative command to clear a bucket (or a namespace if that's desired) directly. This would obviously require a bit more a heavy-lifting, ACL controls, scoping, etc.

      Conveniently, either way, the necessary BucketCatalog functionality is already supplied by SERVER-55060.

            Assignee:
            dan.larkin-york@mongodb.com Dan Larkin-York
            Reporter:
            dan.larkin-york@mongodb.com Dan Larkin-York
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: