[SERVER-23631] dur_remove_old_journals.js needs to be robust to delete file race Created: 11/Apr/16  Updated: 26/Apr/16  Resolved: 13/Apr/16

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: 3.3.4
Fix Version/s: 3.3.5

Type: Bug Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Mark Benvenuto
Resolution: Done Votes: 0
Labels: bf-test
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Platforms 13 (04/22/16)
Participants:
Linked BF Score: 0

 Description   

During listFiles in the shell, if a file is being deleted as it is being enumerated via the Windows Find File or other file api, the api call may fail with ACCESS_DENIED if the file is opened for delete. Since ACCESS_DENIED is a generic error message for a lack of permissions, we cannot simply retry at the lowest level for this error as the user may also simply not have permission to the file according to the DACL on the file.

DeleteFile

The DeleteFile function marks a file for deletion on close. Therefore, the file deletion does not occur until the last handle to the file is closed. Subsequent calls to CreateFile to open the file fail with ERROR_ACCESS_DENIED.



 Comments   
Comment by Githook User [ 13/Apr/16 ]

Author:

{u'username': u'markbenvenuto', u'name': u'Mark Benvenuto', u'email': u'mark.benvenuto@mongodb.com'}

Message: SERVER-23631 dur_remove_old_journals.js needs to be robust to delete file race
Branch: master
https://github.com/mongodb/mongo/commit/af2f541d6835e6a3b0b1456d14ce621ce2a7524e

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