[jboss-jira] [JBoss JIRA] (AS7-6379) Intermittent failures in RespawnTestCase
Brian Stansberry (JIRA)
jira-events at lists.jboss.org
Tue Jan 22 21:01:22 EST 2013
[ https://issues.jboss.org/browse/AS7-6379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12749609#comment-12749609 ]
Brian Stansberry commented on AS7-6379:
---------------------------------------
A possibility to investigate, in testReloadHcButNotServers, which seems to be the root issue (others fail in a cascading effect)
{code}
//Execute reload w/ restart-servers=false, admin-only=true
executeReloadOperation(false, true);
//Read HC model until there are no servers
long timeout = System.currentTimeMillis() + NORMAL_TIMEOUT;
while (true) {
Thread.sleep(500);
if (lookupServerInModel(MASTER, SERVER_ONE) || lookupServerInModel(MASTER, SERVER_TWO)) {
if (System.currentTimeMillis() < timeout) {
continue;
} else {
Assert.fail("Should not have servers in restarted admin-only HC model");
}
} else {
break;
}
}
//Execute reload w/ restart-servers=false, admin-only=false
executeReloadOperation(false, false);
//Wait for servers
readHostControllerServers();
{code}
I'm concerned the "if (lookupServerInModel(MASTER, SERVER_ONE) || lookupServerInModel(MASTER, SERVER_TWO)) {" test returns false (which is desired) but would later return 'true' as a server successfully registers when it shouldn't be able to. This disrupts the subsequent reload, and leads to the failure in the final line above, the call to 'readHostControllerServers()'.
> Intermittent failures in RespawnTestCase
> ----------------------------------------
>
> Key: AS7-6379
> URL: https://issues.jboss.org/browse/AS7-6379
> Project: Application Server 7
> Issue Type: Bug
> Components: Domain Management
> Reporter: Brian Stansberry
> Fix For: 7.2.0.CR1
>
>
> Problems like [1] still pop up fairly frequently. It seems the same 3 tests fail.
> Failed tests: testReloadHcButNotServers(org.jboss.as.test.integration.respawn.RespawnTestCase)
> testReloadHcButNotServersWithFailedServer(org.jboss.as.test.integration.respawn.RespawnTestCase) testHCReloadAbortPreservesServers(org.jboss.as.test.integration.respawn.RespawnTestCase)
> [1] http://lightning.mw.lab.eng.bos.redhat.com/jenkins/job/as7-master-ignore/327/
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list