[infinispan-issues] [JBoss JIRA] (ISPN-11627) InfinispanServerRule returning FileAlreadyExistsException if you use mavenArtifacts and restart the server

Gustavo Lira e Silva (Jira) issues at jboss.org
Thu Apr 9 19:38:00 EDT 2020


     [ https://issues.redhat.com/browse/ISPN-11627?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gustavo Lira e Silva updated ISPN-11627:
----------------------------------------
    Git Pull Request: https://github.com/infinispan/infinispan/pull/8189


> InfinispanServerRule returning FileAlreadyExistsException if you use mavenArtifacts and restart the server
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: ISPN-11627
>                 URL: https://issues.redhat.com/browse/ISPN-11627
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Test Suite
>    Affects Versions: 11.0.0.Dev03
>            Reporter: Gustavo Lira e Silva
>            Assignee: Gustavo Lira e Silva
>            Priority: Major
>
> If we use {{InfinispanServerRule}} deploying maven artifacts and restart the server during the tests, we will receive {{FileAlreadyExistsException}}
> {code:java}
> @ClassRule
>    public static InfinispanServerRule SERVERS =
>          InfinispanServerRuleBuilder.config("configuration/PersistenceTest.xml")
>                                     .numServers(1)
>                                     .runMode(ServerRunMode.CONTAINER)
>                                     .mavenArtifacts("com.h2database:h2:1.4.199")
>                                     .build();
> ...
> ContainerInfinispanServerDriver serverDriver = (ContainerInfinispanServerDriver) SERVER.getServerDriver();
>         RestClient rest = SERVER_TEST.rest().get();
>         sync(rest.server().stop());
>         Eventually.eventually(
>                 "Cluster did not shutdown within timeout",
>                 () -> (!serverDriver.isRunning(0) ),
>                 serverDriver.getTimeout(), 1, TimeUnit.SECONDS);
>         serverDriver.restart(0);
> {code}



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the infinispan-issues mailing list