threadsafe Utils.ensure(File)
commitcd0696cbd8a75d78ed8bcf904f81883a5850eedf
authorStephan Saalfeld <saalfeld@mpi-cbg.de>
Thu, 2 Oct 2014 18:17:07 +0000 (2 14:17 -0400)
committerStephan Saalfeld <saalfeld@mpi-cbg.de>
Thu, 2 Oct 2014 18:17:07 +0000 (2 14:17 -0400)
treecf4df7fbc41dd0b2d4064d03c491e3c7ee4ed863
parentf991c00828a7535cb355462e2fd9de9ae1ad25d9
threadsafe Utils.ensure(File)

There is a race condition in File.mkdirs() that makes it fail if another
thread attempts to generate the exact same directory simultaneously.
This does not happen frequently and thus remained undetected for a long
time, but it reliably screws up large and complicated alignments on beefy
workstations.  Bug reference

http://bugs.java.com/view_bug.do?bug_id=6492293
TrakEM2_/src/main/java/ini/trakem2/utils/Utils.java