Details
-
Bug
-
Resolution: Cannot Reproduce
-
Minor
-
None
-
None
Description
ReadOnlyModeTestCase.testConfigurationNotUpdated has intermittent failures.
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)
Problem is the last line here:
// 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());
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.