[jboss-jira] [JBoss JIRA] (WFCORE-3944) Backup slave not reconnecting after master shutdown

Tomas Hofman (JIRA) issues at jboss.org
Mon Jun 25 10:13:00 EDT 2018


     [ https://issues.jboss.org/browse/WFCORE-3944?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tomas Hofman updated WFCORE-3944:
---------------------------------
    Description: 
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.


  was:
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:

{code:java}
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());
    }
  }
}
{code}

It should be like this:

{code:java}
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());
    }
  }
}
{code}



> Backup slave not reconnecting after master shutdown
> ---------------------------------------------------
>
>                 Key: WFCORE-3944
>                 URL: https://issues.jboss.org/browse/WFCORE-3944
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: Management
>         Environment: EAP 7.1.2
> Windows
>            Reporter: Tomas Hofman
>            Assignee: Tomas Hofman
>            Priority: Critical
>         Attachments: test-case.zip
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list