[infinispan-issues] [JBoss JIRA] (ISPN-4567) InfinispanLuceneDirectoryIT random failure: LifecycleException: The server is already running
Galder Zamarreño (JIRA)
issues at jboss.org
Tue Sep 16 05:50:02 EDT 2014
[ https://issues.jboss.org/browse/ISPN-4567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13002726#comment-13002726 ]
Galder Zamarreño commented on ISPN-4567:
----------------------------------------
I've looked into this in more detail:
- There are two servers involved here. One, a plain Infinispan server started according to the settings in build.xml. There's a second server, which runs an Arquillian test which is built from base Wildfly with Infinispan client modules and tries to communicate with the first server.
- IMO, the issue arises when the 2nd container, the Arquillian one which is started in 2nd position, does not stop correctly. As a result of that, kill_server script finds two servers, but it only kills one of them, leaving the Arquillian one still up. Arquillian tests after that fail to run cos there's a server already up.
- It's impossible to tell from the logs what caused the Arquillian server not to stop.
Things that we can (and can't) do to improve this:
- Bringing InfinispanServerKillProcessor to this module. That won't work since that processor is only used for situations when kill() is called on it.
- Improving kill_server so that it kills multiple servers might help in case the issue appears again.
- Enable console logging for client Arquillian so that it's clearer what it does.
> InfinispanLuceneDirectoryIT random failure: LifecycleException: The server is already running
> ---------------------------------------------------------------------------------------------
>
> Key: ISPN-4567
> URL: https://issues.jboss.org/browse/ISPN-4567
> Project: Infinispan
> Issue Type: Bug
> Components: Test Suite - Server
> Affects Versions: 7.0.0.Alpha5
> Reporter: Dan Berindei
> Assignee: Galder Zamarreño
> Priority: Blocker
> Labels: testsuite_stability
> Fix For: 7.0.0.Beta2
>
>
> {{ManagedDeployableContainer}} detects a running container, even though the previous module killed its server:
> {noformat}
> [10:25:05] : [org.infinispan:infinispan-as-module-client-integrationtests] kill_server:
> [10:25:06] : [org.infinispan:infinispan-as-module-client-integrationtests] [echo] Killing Infinispan server with PID - 3658 29739
> [10:25:06] : [org.infinispan:infinispan-as-module-client-integrationtests] [delete] Deleting: /mnt/ebs/TeamCity/buildAgent/work/master/integrationtests/as-integration-client/jps.pid
> [10:25:20] : [org.infinispan:infinispan-as-lucene-integration] org.infinispan.test.integration.as.InfinispanLuceneDirectoryIT Time elapsed: 3.285 sec <<< ERROR!
> [10:25:20] : [org.infinispan:infinispan-as-lucene-integration] org.jboss.arquillian.container.spi.client.container.LifecycleException: The server is already running! Managed containers do not support connecting to running server instances due to the possible harmful effect of connecting to the wrong server. Please stop server before running or change to another type of container.
> [10:25:20] : [org.infinispan:infinispan-as-lucene-integration] To disable this check and allow Arquillian to connect to a running server, set allowConnectingToRunningServer to true in the container configuration
> [10:25:20] : [org.infinispan:infinispan-as-lucene-integration] at org.jboss.as.arquillian.container.managed.ManagedDeployableContainer.failDueToRunning(ManagedDeployableContainer.java:358)
> [10:25:20] : [org.infinispan:infinispan-as-lucene-integration] at org.jboss.as.arquillian.container.managed.ManagedDeployableContainer.startInternal(ManagedDeployableContainer.java:88)
> [10:25:20] : [org.infinispan:infinispan-as-lucene-integration] at org.jboss.as.arquillian.container.CommonDeployableContainer.start(CommonDeployableContainer.java:112)
> [10:25:20] : [org.infinispan:infinispan-as-lucene-integration] at org.jboss.arquillian.container.impl.ContainerImpl.start(ContainerImpl.java:199)
> [10:25:20] : [org.infinispan:infinispan-as-lucene-integration] at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$8.perform(ContainerLifecycleController.java:163)
> [10:25:20] : [org.infinispan:infinispan-as-lucene-integration] at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$8.perform(ContainerLifecycleController.java:157)
> [10:25:20] : [org.infinispan:infinispan-as-lucene-integration] at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.forContainer(ContainerLifecycleController.java:255)
> [10:25:20] : [org.infinispan:infinispan-as-lucene-integration] at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.startContainer(ContainerLifecycleController.java:156)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
More information about the infinispan-issues
mailing list