Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e6e8e96b552b935b651a1fae619fbc93ee34251f3da80f82b485fdc8f5344905
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:38:43
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. 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 ntfs 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
    
  5. foundin changed to: "8.6"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "c107fb282706d905622cb399ae4f7561e40d91cc"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "37. File System"
  15. title changed to: "mkdir failing when running on parallel"
  16. type changed to: "Bug"