[SERVER-77003] Allow renames of time-series collection buckets Created: 10/May/23 Updated: 29/Oct/23 Resolved: 05/Jun/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.1.0-rc0, 7.0.0-rc6, 6.0.9 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Felipe Gasper | Assignee: | Mark Benvenuto |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | bkp | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||
| Assigned Teams: |
Server Security
|
||||||||||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||||||||||
| Backport Requested: |
v7.0, v6.3, v6.0
|
||||||||||||||||||||||||||||||||
| Sprint: | Execution Team 2023-05-29, Security 2023-06-12 | ||||||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||||||
| Linked BF Score: | 124 | ||||||||||||||||||||||||||||||||
| Description |
|
Mongosync maintains an internal mapping of source & destination collection UUIDs. Because we can’t update that mapping atomically with creating the collection, mongosync does the following:
The rationale is that, if mongosync goes down at any point in the above workflow, the failure is recoverable. Time-series collections don’t presently seem to work with this workflow because they can’t be renamed—either the “aggregate” collection (view + bucket) or the internal bucket collection. (We can create & drop buckets directly, but not rename them.) If I’m understanding everything about this properly, then, it would seem that mongosync requires some way to rename time-series collections—or at least their buckets—in order to support these collections. For C2C’s purposes it should suffice to ensure the user has setUserWriteBlockMode authorization. |
| Comments |
| Comment by Githook User [ 13/Jul/23 ] | |||||||||||||||||||||
|
Author: {'name': 'Mark Benvenuto', 'email': 'mark.benvenuto@mongodb.com', 'username': 'markbenvenuto'}Message: (cherry picked from commit cb682808986eda96da8ad94433d5c6cc02434561) | |||||||||||||||||||||
| Comment by Githook User [ 29/Jun/23 ] | |||||||||||||||||||||
|
Author: {'name': 'Dianna Hohensee', 'email': 'dianna.hohensee@mongodb.com', 'username': 'DiannaHohensee'}Message: Revert " This reverts commit 721098ff45959f6e283636f4f5a8d2341e177f47. | |||||||||||||||||||||
| Comment by Githook User [ 21/Jun/23 ] | |||||||||||||||||||||
|
Author: {'name': 'Mark Benvenuto', 'email': 'mark.benvenuto@mongodb.com', 'username': 'markbenvenuto'}Message: | |||||||||||||||||||||
| Comment by Githook User [ 21/Jun/23 ] | |||||||||||||||||||||
|
Author: {'name': 'Mark Benvenuto', 'email': 'mark.benvenuto@mongodb.com', 'username': 'markbenvenuto'}Message: | |||||||||||||||||||||
| Comment by Githook User [ 05/Jun/23 ] | |||||||||||||||||||||
|
Author: {'name': 'Mark Benvenuto', 'email': 'mark.benvenuto@mongodb.com', 'username': 'markbenvenuto'}Message: | |||||||||||||||||||||
| Comment by Felipe Gasper [ 10/May/23 ] | |||||||||||||||||||||
|
Context:
… but renaming is forbidden, even when there’s no view. The view can then also be created on its own, thus:
| |||||||||||||||||||||
| Comment by Felipe Gasper [ 10/May/23 ] | |||||||||||||||||||||
|
|