Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-4622

ReadOnlyModeTestCase.testConfigurationNotUpdated is racy during host reload

    XMLWordPrintable

Details

    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.

      Attachments

        Activity

          People

            yborgess1@redhat.com Yeray Borges Santana
            bstansbe@redhat.com Brian Stansberry
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: