[ 
https://issues.apache.org/jira/browse/ARTEMIS-5199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17903004#comment-17903004
 ] 

Clebert Suconic edited comment on ARTEMIS-5199 at 12/4/24 2:04 PM:
-------------------------------------------------------------------

I'm not going to create a test for this since 
SharedStorageDistributionTest::testSimpleRedistribution would fail eventually.


was (Author: clebertsuconic):
I'm not going to create a test for this since 
SharedStorageDistributionTest::testSimpleRedistribution will fail in a loop.

> Create directory race on shared storage
> ---------------------------------------
>
>                 Key: ARTEMIS-5199
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-5199
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>    Affects Versions: 2.38.0
>            Reporter: Clebert Suconic
>            Assignee: Clebert Suconic
>            Priority: Major
>             Fix For: 2.39.0
>
>
> This is a fix on SharedStorageDistributionTest::testSimpleRedistribution
> Two servers are sharing the same journal. While both servers are starting 
> they will check for:
> if (!dir.exists()) {
>     if (!dir.mkdirs()) {
>            throw new IllegalStateException("cannot create directory);
>     }
> }
> this should validate if the dir didn't exist before throwing an exception to 
> avoid such race.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to