]
Tristan Tarrant updated ISPN-11627:
-----------------------------------
Status: Open (was: New)
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
Fix For: 10.1.7.Final, 11.0.0.Dev05
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}