ARTEMIS-5199 Fixing race on create directory for shared storage
This is fixing SharedStoreDistributionTest
This commit is contained in:
parent
8b8d552a0d
commit
29354d4a66
|
@ -715,7 +715,7 @@ public class JournalStorageManager extends AbstractJournalStorageManager {
|
|||
private void checkAndCreateDir(final File dir, final boolean create) {
|
||||
if (!dir.exists()) {
|
||||
if (create) {
|
||||
if (!dir.mkdirs()) {
|
||||
if (!dir.mkdirs() && !dir.exists()) {
|
||||
throw new IllegalStateException("Failed to create directory " + dir);
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue