[SERVER-61194] Prevent time-series bucket OID reuse with coarse granularity Created: 02/Nov/21  Updated: 29/Oct/23  Resolved: 12/Nov/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.2.0, 5.1.2, 5.0.6

Type: Bug Priority: Major - P3
Reporter: Dan Larkin-York Assignee: Dan Larkin-York
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Duplicate
is duplicated by SERVER-61151 batch->getResult().getStatus() == Err... Closed
Problem/Incident
causes SERVER-61412 Avoid time-series bucket OID collisio... Backlog
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.1, v5.0
Sprint: Execution Team 2021-11-15, Execution Team 2021-11-29
Participants:
Case:

 Description   

Currently, when we fill a time-series bucket and roll over to a new one, we can in some cases generate the same bucket OID. This is because we round the timestamp down based on the collection granularity. If we end up with the same rounded timestamp portion of the OID, the rest of the OID may be the same as the previous one.



 Comments   
Comment by Githook User [ 24/Nov/21 ]

Author:

{'name': 'Dan Larkin-York', 'email': 'dan.larkin-york@mongodb.com', 'username': 'dhly-etc'}

Message: SERVER-61194 Prevent time-series bucket OID reuse with coarse granularity
Branch: v5.0
https://github.com/mongodb/mongo/commit/00c59c48242fd3d50e773bc6a9db152323c8112e

Comment by Githook User [ 24/Nov/21 ]

Author:

{'name': 'Dan Larkin-York', 'email': 'dan.larkin-york@mongodb.com', 'username': 'dhly-etc'}

Message: SERVER-61194 Prevent time-series bucket OID reuse with coarse granularity
Branch: v5.1
https://github.com/mongodb/mongo/commit/d428a070c0a3a6bed5cb7414117794af09f846af

Comment by Dan Larkin-York [ 23/Nov/21 ]

diego.rodriguez Retrying the inserts may succeed, but there's no guarantee until the backport is released.

Comment by Githook User [ 12/Nov/21 ]

Author:

{'name': 'Dan Larkin-York', 'email': 'dan.larkin-york@mongodb.com', 'username': 'dhly-etc'}

Message: SERVER-61194 Prevent time-series bucket OID reuse with coarse granularity
Branch: master
https://github.com/mongodb/mongo/commit/5738f885cc99963e1322b9f6a1d9a8b34162714a

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