[SERVER-67394] Forbid DDL operations directly on bucket namespaces Created: 20/Jun/22  Updated: 29/Oct/23  Resolved: 16/Sep/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.2.0-rc0

Type: Task Priority: Major - P3
Reporter: Tommaso Tocci Assignee: Tommaso Tocci
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-68383 Allow DDL operations directly on buck... Closed
Related
is related to SERVER-67462 Support renaming encrypted collection... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding EMEA 2022-09-05, Sharding EMEA 2022-09-19
Participants:

 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)



 Comments   
Comment by Githook User [ 16/Sep/22 ]

Author:

{'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}

Message: SERVER-67394 Forbid DDL operations directly on bucket namespaces
Branch: master
https://github.com/mongodb/mongo/commit/8fefbc6c5545b188900d26c0d4d448628a9ba98b

Generated at Thu Feb 08 06:08:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.