[SERVER-73864] Create time-series buckets collection and view in multi-doc transaction Created: 09/Feb/23 Updated: 04/Jan/24 |
|
| Status: | Backlog |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Gregory Noma | Assignee: | Backlog - Storage Execution Team |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Assigned Teams: |
Storage Execution
|
||||||||
| Participants: | |||||||||
| Linked BF Score: | 14 | ||||||||
| Description |
|
When creating a time-series collection, first we create the buckets collection and then we create the view non-atomically. This allows for cases where the former can succeed but not the latter (for instance replication rollback). We should consider using an internal multi-document transaction here so that these two steps are performed atomically. |