Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-14817

[GSS](7.1.z) EAP backup slave not reconnecting after master shutdown

XMLWordPrintable

    • Hide

      The content of README.txt from customer reproducer.

      1. Unzip JBoss EAP 7.1 into two different folders.
      2. Copy the files from "master" into one of the folders.
      3. Copy the files from "slave" into the other folder.
      4. Master: bin\domain.bat
      5. Slave: bin\domain.bat --backup
      ^ This part is important
      6. Master CLI:
      deploy --force /path/to/war_v2/dummy.war
      shutdown --host=master --restart=true

      Show
      The content of README.txt from customer reproducer. 1. Unzip JBoss EAP 7.1 into two different folders. 2. Copy the files from "master" into one of the folders. 3. Copy the files from "slave" into the other folder. 4. Master: bin\domain.bat 5. Slave: bin\domain.bat --backup ^ This part is important 6. Master CLI: deploy --force /path/to/war_v2/dummy.war shutdown --host=master --restart=true

      The problem only occurs when backup mode (--backup flag) is on, and it actually is unrelated to patching. (I only noticed it when patching because that's usually when I restart the host.) I will attach an example you can use to verify the bug.

      Below is where I think the problem is:

      if (endRoot.hasDefined(SERVER_GROUP)) {
        for (final Property serverGroup : endRoot.get(SERVER_GROUP).asPropertyList()) {
          if (serverGroup.getValue().hasDefined(deploymentElement.getKey(), deploymentElement.getValue())) {
            affectedGroups.add(serverGroup.getName());
            relevantDeployments.add(deploymentElement.getValue());
          }
        }
      }
      

      It should be like this:

      if (endRoot.hasDefined(SERVER_GROUP)) {
        for (final Property serverGroup : endRoot.get(SERVER_GROUP).asPropertyList()) {
          if (serverGroup.getValue().hasDefined(deploymentElement.getKey(), deploymentElement.getValue())) {
            if (serversByGroup.containsKey(serverGroup.getName())) {
              affectedGroups.add(serverGroup.getName());
            }
            relevantDeployments.add(deploymentElement.getValue());
          }
        }
      }
      

            thofman Tomas Hofman
            rhn-support-wqueiroz Wagner Queiroz
            Daniel Cihak Daniel Cihak
            Daniel Cihak Daniel Cihak
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: