[jboss-jira] [JBoss JIRA] (WFCORE-2073) Increase the likelihood of ManagedProcess kill invoking the OS kill command when multiple HCs are on the system

Brian Stansberry (JIRA) issues at jboss.org
Fri Mar 10 13:54:00 EST 2017


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

Brian Stansberry updated WFCORE-2073:
-------------------------------------
    Labels: domain-mode  (was: )


> Increase the likelihood of ManagedProcess kill invoking the OS kill command when multiple HCs are on the system
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: WFCORE-2073
>                 URL: https://issues.jboss.org/browse/WFCORE-2073
>             Project: WildFly Core
>          Issue Type: Enhancement
>          Components: Domain Management
>            Reporter: Brian Stansberry
>            Assignee: Brian Stansberry
>            Priority: Minor
>              Labels: domain-mode
>             Fix For: 4.0.0.Alpha1
>
>
> The ManagedProcess kill() method relies on a scan of running processes that have a command line with -D[<processname>] in the command line, refusing to do the OS kill if > 1 such process is found.
> This is troublesome if you have > 1 HC on the machine, as they are likely to use the same process names (e.g. "Server:server-one"). So the 'kill' doesn't happen, and destroy() gets used instead. Destroy doesn't seem as strong, as it seems to not prevent shutdown hook execution, leaving open the possibility of hangs.
> Perhaps the PC could generate a random int or even a short and include that as a param on the command line as well, then use that as part of the discrimination check.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list