[SERVER-38644] Guard against ephemeral files disappearing during umask test Created: 14/Dec/18  Updated: 29/Oct/23  Resolved: 18/Dec/18

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 3.6.12, 4.0.8, 4.1.7

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

Issue Links:
Backports
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.0, v3.6
Sprint: Security 2018-12-17, Security 2018-12-31
Participants:
Linked BF Score: 9

 Description   

jstests/noPassthrough/umask.js iterates an active MongoD directory processing stating each file, but the file could be unlinked during a given loop leading to a file-not-found exception.

Guard this with a try block and move along.



 Comments   
Comment by Githook User [ 22/Mar/19 ]

Author:

{'email': 'sara.golemon@mongodb.com', 'name': 'Sara Golemon', 'username': 'sgolemon'}

Message: SERVER-38644 Handle race condition while enumerating files in test

(cherry picked from commit bebb6e35482fd706cdfd89fe2c70a925faa47d42)
Branch: v4.0
https://github.com/mongodb/mongo/commit/c1650e3a6df1196f0c2ebf0824d630ace8db0b4e

Comment by Githook User [ 18/Mar/19 ]

Author:

{'name': 'Sara Golemon', 'username': 'sgolemon', 'email': 'sara.golemon@mongodb.com'}

Message: SERVER-38644 Handle race condition while enumerating files in test

(cherry picked from commit bebb6e35482fd706cdfd89fe2c70a925faa47d42)
Branch: v3.6
https://github.com/mongodb/mongo/commit/aa196f6b8119c5404b6df2c194a3d92646ab068e

Comment by Githook User [ 18/Dec/18 ]

Author:

{'username': 'sgolemon', 'email': 'sara.golemon@mongodb.com', 'name': 'Sara Golemon'}

Message: SERVER-38644 Handle race condition while enumerating files in test
Branch: master
https://github.com/mongodb/mongo/commit/bebb6e35482fd706cdfd89fe2c70a925faa47d42

Generated at Thu Feb 08 04:49:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.