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

Forbid DDL operations directly on bucket namespaces

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 6.2.0-rc0
    • None
    • None
    • Fully Compatible
    • Sharding EMEA 2022-09-05, Sharding EMEA 2022-09-19

    Description

      DDL operations that operates directly on the bucket namespace will be forbidden. This will ensure that in case of DDL operation on timeseries collection:

      • DDL coordinators document will always use the view nss in their coordinator document in case of timeseries collection
      • We won't ever need to translate a bucket namespace to its own view namespace. In fact we will always perform translation from the view to the bucket collection.
      • DDL can be serialized only on the view nss, thus it can be done before translating the namespace.

      In PM-2241 change events are going to be emitted for DDL operations on bucket namespace in order to allow C2C to replicate those on the destination cluster. Thus C2C needs to perform operations directly against the bucket collections on the destination cluster.
      To accommodate this exceptional use case, DDL operations will be allowed on bucket namespaces if the client has ActionType::setUserWriteBlockMode authorization over the cluster resources.
      (Similarly to what have been implemented in SERVER-67462)

      Attachments

        Issue Links

          Activity

            People

              tommaso.tocci@mongodb.com Tommaso Tocci
              tommaso.tocci@mongodb.com Tommaso Tocci
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: