[SERVER-57660] Ordered time-series inserts can race with time-series buckets collection drop Created: 11/Jun/21  Updated: 29/Oct/23  Resolved: 16/Jun/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.0.0-rc3, 5.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Gregory Noma Assignee: Gregory Noma
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
is related to SERVER-57793 Inserting into a time-series collecti... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.0
Sprint: Execution Team 2021-06-28
Participants:
Linked BF Score: 150

 Description   

On the ordered time-series insert path we invariant that the buckets collection exists, but this is not necessarily the case if there is a race with the buckets collection being dropped.

Presumably we should implicitly create the buckets collection in this case, which is what should already be happening on the unordered insert path.



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 17/Jun/21 ]

Author:

{'name': 'Gregory Noma', 'email': 'gregory.noma@gmail.com', 'username': 'gregorynoma'}

Message: SERVER-57660 Fail time-series inserts if buckets collection does not exist

(cherry picked from commit e3dbc111bf3e3167346aa20f9b9558b8b7c70303)
Branch: v5.0
https://github.com/mongodb/mongo/commit/2450d18b845ea3477a9e418bb5c7b1f61f08c786

Comment by Githook User [ 16/Jun/21 ]

Author:

{'name': 'Gregory Noma', 'email': 'gregory.noma@gmail.com', 'username': 'gregorynoma'}

Message: SERVER-57660 Fail time-series inserts if buckets collection does not exist
Branch: master
https://github.com/mongodb/mongo/commit/e3dbc111bf3e3167346aa20f9b9558b8b7c70303

Generated at Thu Feb 08 05:42:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.