[SERVER-58020] cache-dir: prevent same buildsig with different content race condition Created: 23/Jun/21  Updated: 29/Oct/23  Resolved: 21/Jul/21

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

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

Attachments: PDF File two pushed _ Splunk 8.2.2105.2.pdf    
Issue Links:
Backports
Related
related to SERVER-56625 validate cachedir race condition when... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.0
Sprint: Dev Platform 2021-06-28, Dev Platform 2021-07-12, Dev Platform 2021-07-26
Participants:

 Description   

A race condition has been found where two builders will push the same file to the cache at the same time with the same build sig in the cache, but have different file contents. The cachefile itself is protected from the race via the cache dir UUID tmpfile, but the content_hash file is not protected.



 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 [ 21/Jul/21 ]

Author:

{'name': 'Daniel Moody', 'email': 'daniel.moody@mongodb.com', 'username': 'dmoody256'}

Message: SERVER-58020 add protection from same buildsig and different hash cache race

(cherry picked from commit fd823ca653b1652249d1f6ce870179cdd3f95c78)
Branch: v5.0
https://github.com/mongodb/mongo/commit/b7b2e5fa0550c3b6408d4865051d980f5a5786cf

Comment by Githook User [ 21/Jul/21 ]

Author:

{'name': 'Daniel Moody', 'email': 'daniel.moody@mongodb.com', 'username': 'dmoody256'}

Message: SERVER-58020 add protection from same buildsig and different hash cache race
Branch: master
https://github.com/mongodb/mongo/commit/fd823ca653b1652249d1f6ce870179cdd3f95c78

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