[jboss-jira] [JBoss JIRA] (WFCORE-273) ServerInventory#reconnectServer should take auto-start into account

Brian Stansberry (JIRA) issues at jboss.org
Mon Mar 28 15:35:00 EDT 2016


    [ https://issues.jboss.org/browse/WFCORE-273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13182592#comment-13182592 ] 

Brian Stansberry commented on WFCORE-273:
-----------------------------------------

[~luck3y], given the statement in the description "Otherwise the process will just get removed, however started with the next :reload of the HC", I *think* the original "bug" scenario was this:

1) Start an HC "foo" with a server "bar" that has auto-start=true in its server-config
2) /host=foo/server=bar:stop
3) reload --host=foo --restart-servers=false

When step 3 is done, server "bar" would still be stopped. Because the --restart-servers param is set to false, the user is indicating the reload is not meant to change what servers are running. So, the auto-start=true should not take precedence over the fact the server was stopped.

Arguably the same could be said with --restart-servers=true as well, i.e. that a reload is not the same thing as a new boot.

I think the thing to do here is to have a solution that fits best with the WFCORE-297 fix, but adds in clear semantics for the --restart-servers=false case. Double check with [~ehugonnet] but I believe what was done with 297 was adding that update-auto-start-with-server-status = true to cause the HC to "remember" whether a server is stopped/started and then use that when it restarts. And if that attribute isn't true, then the HC doesn't "remember" and all that matters is what's in host.xml. My instinct is the right thing to do is to be consistent when doing a reload as well. A reload is really just a faster restart that preserves the same process. It's behavior should be as close to restart as possible.

It's quite likely that WFCORE-297 has fixed this as well.

BTW, regardless of these attributes, in the "reload --host=foo --restart-servers=false" case, if a server was running before the reload, the HC needs to properly trigger a reconnect. We can never have a situation where after a reload a disconnected server is left floating unmanaged as a zombie.

> ServerInventory#reconnectServer should take auto-start into account
> -------------------------------------------------------------------
>
>                 Key: WFCORE-273
>                 URL: https://issues.jboss.org/browse/WFCORE-273
>             Project: WildFly Core
>          Issue Type: Task
>          Components: Domain Management
>            Reporter: Emanuel Muckenhuber
>            Assignee: Ken Wills
>             Fix For: 3.0.0.Alpha1
>
>
> When reconnecting to stopped (but not removed) servers, the ServerInventory should take the auto-start property into account. Otherwise the process will just get removed, however started with the next :reload of the HC.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list