Skip to content

Commit

Permalink
ARTEMIS-5199 Fixing race on create directory for shared storage
Browse files Browse the repository at this point in the history
This is fixing SharedStoreDistributionTest
  • Loading branch information
clebertsuconic committed Dec 4, 2024
1 parent 8b8d552 commit 29354d4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ private Map<SimpleString, Collection<Integer>> getPageInformationForSync(PagingM
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 {
Expand Down

0 comments on commit 29354d4

Please sign in to comment.