[
https://issues.apache.org/jira/browse/GEODE-2160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15810698#comment-15810698
]
ASF subversion and git services commented on GEODE-2160:
--------------------------------------------------------
Commit 488850bd7f43d25abe31f00aec832b3c147f8fbd in geode's branch
refs/heads/feature/GEODE-2160 from [~amb]
[ https://git-wip-us.apache.org/repos/asf?p=geode.git;h=488850b ]
GEODE-2160: gfsh waits for process exit before reporting success
gfsh stop server/locator now waits for the process to exit before
returning a result code. Adds a member mbean operation to support
synchronous shutdown.
> gfsh stop server/locator exits with code 0 before server/locator actually
> stops
> -------------------------------------------------------------------------------
>
> Key: GEODE-2160
> URL: https://issues.apache.org/jira/browse/GEODE-2160
> Project: Geode
> Issue Type: Bug
> Affects Versions: 1.0.0-incubating
> Reporter: Jacob S. Barrett
> Assignee: Anthony Baker
>
> Executing
> {code}
> gfsh stop server --name=server1
> {code}
> {{gfsh}} exits, with code 0, prior to the server actually being stopped.
> This behavior isn't documented and makes scripting with gfsh difficult. One
> can't assume that the server has stopped after gfsh exits. To verify you must
> parse the server pid and check the status of the proc.
> Simple test:
> {code}
> gfsh start server --name=s2 && sleep 10 && gfsh stop server --dir=s2; echo
> $?; while (kill -0 `cat s2/vf.gf.server.pid`); do date +%s.%N; done
> {code}
> Starts server, waits 10s, stops server, prints exit code, loops until process
> is gone while printing the time since epoch.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)