-
Type: Bug
-
Resolution: Fixed
-
Priority: Trivial
-
None
-
Affects Version/s: 3.0.3, 3.1
-
Component/s: Planner: Transfer Module
-
None
Property Set: -Dpegasus.dir.storage=test
When multiple stage out jobs try to create the local directory $STORAGE/test before staging out the files, One of the job fails with error "File exists".
cp () calls prepare_local_path
def prepare_local_dir(path):
"""
makes sure a local path exists before putting files into it
"""
if not(os.path.exists(path)): ----------- Both stageout jobs find this to be true
os.makedirs(path, 0755) ---------- Exception thrown here, since one job successfully creates the dir before the other.