Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 72ecdfad4381568f542bebf37649c3700fda00dfd8ec6649cb0941edcfb8fe10
Ticket: 270f78ca95b642fbed81ed03ad381d64a0d0f7df
file mkdir: race condition if two workers creates same directory and one worker deletes it immediately
User & Date: anonymous on 2018-07-09 11:40:41
Changes

  1. comment changed to:
    When running in parallel two terminals doing:
    
     1. while {1} { file mkdir bla }
     2. while {1} { file mkdir bla; file delete bla }
    
    mkdir eventually fails. On ext4 this is not as bad, but on nfs mkdir consistently fails when two process make the same dir. This does not happen using 
    
        exec mkdir -p bla
    
    Related SO question with some tests results of mine:
    https://stackoverflow.com/questions/48095178/atomicity-of-mkdir/51180411?noredirect=1#comment89394405_51180411
    
  2. login: "anonymous"
  3. mimetype: "text/plain"
  4. title changed to: "mkdir failing when running on parallel on nfs"