[ 
https://issues.apache.org/jira/browse/GEODE-5787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sai Boorlagadda updated GEODE-5787:
-----------------------------------
    Description: 
Process.destroy is not graceful on windows and causes distributed system to get 
into suspect mode and network partition when used in DUnit to restart VMs.

There were existing JDK [bugs|https://bugs.openjdk.java.net/browse/JDK-8056139] 
open requesting for supporting graceful destroy for Windows. 

Underlying native implementation on Linux can take advantage of SIGTERM vs 
SIGKILL and JDK supports process.destroy and process.destroyForcibly, where as 
on Windows this differentiation is not possible so its unlikely that we will 
see JDK support for graceful destroy.

A better approach would be to invoke 'System.exit( n )' using VM.invoke.

  was:
Process.destroy is not graceful on windows and causes distributed system to get 
into suspect mode and network partition when used in DUnit to restart VMs.

There were existing JDK [bugs|https://bugs.openjdk.java.net/browse/JDK-8056139] 
open requesting for supporting graceful destroy for Windows. 

Underlying native implementation on Linux can take advantage of SIGTERM vs 
SIGKILL and JDK supports process.destroy and process.destroyForcibly, where as 
on Windows this differentiation is not possible so its unlikely that we will 
see JDK support for graceful destroy.

A better approach would be to invoke 'System.exit(n) ' using VM.invoke.


> Support graceful bouncing DUnit VMs on windows
> ----------------------------------------------
>
>                 Key: GEODE-5787
>                 URL: https://issues.apache.org/jira/browse/GEODE-5787
>             Project: Geode
>          Issue Type: New Feature
>          Components: tests
>            Reporter: Sai Boorlagadda
>            Priority: Major
>
> Process.destroy is not graceful on windows and causes distributed system to 
> get into suspect mode and network partition when used in DUnit to restart VMs.
> There were existing JDK 
> [bugs|https://bugs.openjdk.java.net/browse/JDK-8056139] open requesting for 
> supporting graceful destroy for Windows. 
> Underlying native implementation on Linux can take advantage of SIGTERM vs 
> SIGKILL and JDK supports process.destroy and process.destroyForcibly, where 
> as on Windows this differentiation is not possible so its unlikely that we 
> will see JDK support for graceful destroy.
> A better approach would be to invoke 'System.exit( n )' using VM.invoke.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to