mirror of
https://github.com/Alfresco/alfresco-transform-core.git
synced 2025-06-30 18:14:51 +00:00
Merge pull request #882 from Alfresco/feature/ACS-6168_intermittent_test_failures_in_http_load_tests
ACS-6168: Add additional check after temp folder creation attempt, to avoid concurrency clashes
This commit is contained in:
commit
2ff3fc63e4
@ -230,7 +230,7 @@ public class FileManager
|
||||
|
||||
final File systemTempDir = new File(systemTempDirPath);
|
||||
final File tempDir = new File(systemTempDir, dirName);
|
||||
if (!tempDir.exists() && !tempDir.mkdirs())
|
||||
if (!tempDir.exists() && !tempDir.mkdirs() && !tempDir.exists())
|
||||
{
|
||||
throw new RuntimeException("Failed to create temp directory: " + tempDir);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user