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

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


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

Tomas Hofman moved JBEAP-14937 to WFCORE-3944:
----------------------------------------------

              Project: WildFly Core  (was: JBoss Enterprise Application Platform)
                  Key: WFCORE-3944  (was: JBEAP-14937)
             Workflow: GIT Pull Request workflow   (was: CDW with loose statuses v1)
          Component/s: Management
                           (was: Management)
    Affects Version/s:     (was: 7.1.2.GA)


> 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
>
> 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}



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


More information about the jboss-jira mailing list