Brian Stansberry created WFCORE-4622:
----------------------------------------
Summary: ReadOnlyModeTestCase.testConfigurationNotUpdated is racy during host
reload
Key: WFCORE-4622
URL:
https://issues.jboss.org/browse/WFCORE-4622
Project: WildFly Core
Issue Type: Bug
Components: Management, Test Suite
Reporter: Brian Stansberry
Assignee: Jeff Mesnil
ReadOnlyModeTestCase.testConfigurationNotUpdated has intermittent failures.
{code}
java.lang.IllegalArgumentException
at org.jboss.dmr.ModelValue.asBoolean(ModelValue.java:69)
at org.jboss.dmr.ModelNode.asBoolean(ModelNode.java:324)
at
org.jboss.as.test.integration.domain.ReadOnlyModeTestCase.testConfigurationNotUpdated(ReadOnlyModeTestCase.java:96)
{code}
Problem is the last line here:
{code}
// reload master HC
op = new ModelNode();
op.get(OP_ADDR).add(HOST, "master");
op.get(OP).set("reload");
domainMasterLifecycleUtil.executeAwaitConnectionClosed(op);
// Try to reconnect to the hc
domainMasterLifecycleUtil.connect();
domainMasterLifecycleUtil.awaitHostController(System.currentTimeMillis());
Assert.assertTrue(Operations.readResult(masterClient.execute(Operations.createReadAttributeOperation(domainAddress,
"value"))).asBoolean());
Assert.assertTrue(Operations.readResult(masterClient.execute(Operations.createReadAttributeOperation(masterAddress,
"value"))).asBoolean());
Assert.assertTrue(Operations.readResult(masterClient.execute(Operations.createReadAttributeOperation(slaveAddress,
"value"))).asBoolean());
{code}
The test reloads the master, waits for the master to reload, and then tries to read the
slave via the master. But just because the master has reloaded doesn't mean the slave
has reconnected. The slave should loop or something until the slave is connected.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)