You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Andrew Schwartzmeyer (JIRA)" <ji...@apache.org> on 2017/11/30 03:42:00 UTC

[jira] [Created] (MESOS-8281) Fix race condition with DeleteFile and RemoveDirectory on Windows

Andrew Schwartzmeyer created MESOS-8281:
-------------------------------------------

             Summary: Fix race condition with DeleteFile and RemoveDirectory on Windows
                 Key: MESOS-8281
                 URL: https://issues.apache.org/jira/browse/MESOS-8281
             Project: Mesos
          Issue Type: Bug
          Components: stout
         Environment: Windows 10 Build 16299
            Reporter: Andrew Schwartzmeyer
            Assignee: Andrew Schwartzmeyer


The biggest bug with os::rmdir was the race condition that appeared on
Windows. There is no method to delete a file on Windows synchronously.
Furthermore, the RemoveDirectory API requires that the directory
actually be empty; that is, it does contain files that are marked for
deletion but not yet deleted. Avoiding this race condition requires
waiting for the file to be deleted, not just marked for deletion.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)