Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

riak stop does not behave properly on BSD systems #251

Merged
merged 2 commits into from
Dec 5, 2012

Conversation

jaredmorrow
Copy link
Contributor

When using riak stop in BSD systems a regular expression was failing that attempted to capture the PID of the running Riak node. This PID was used in the riak stop command to properly wait for a node to stop completely before returning.

The user experience resulted in the following situation:

$ ./bin/riak start
$ ./bin/riak ping 
pong
$ ./bin/riak stop
ok
$ ./bin/riak ping
pong
$ ./bin/riak ping
pong
....  some time
$ ./bin/riak ping
pong
$ ./bin/riak ping
Node 'dev1@127.0.0.1' not responding to pings.

The expected behavior is like that on Linux, riak stop should not return until Riak is fully stopped.

@ghost ghost assigned jaredmorrow Dec 4, 2012
Adds `getpid` as a way to get the PID of the running node.  This
also options that were missing from the usage text.

Supports #251
In BSD systems the regular expression was failing that attempted
to capture the PID of the running Riak node.  This PID was used
in the `riak stop` command to properly wait for a node to stop.

This change fixes the situation by replacing the fragile shell
methods of getting the PID with an erlang / nodetool based
method.  In addtion a `riak getpid` function has been added
for general admin use.

Addresses #251
jaredmorrow added a commit to basho/riak_test that referenced this pull request Dec 5, 2012
This test functionality added to address PID issues found
on FreeBSD using riak_test.

The issue was addressed in basho/riak#251
@jaredmorrow
Copy link
Contributor Author

Test added to basho/riak_test here basho/riak_test#116

@ghost ghost assigned joedevivo Dec 5, 2012
@joedevivo
Copy link
Contributor

Not only do I like it, but it totally works via riak_test and manual devrel testing. +1

jaredmorrow added a commit that referenced this pull request Dec 5, 2012
`riak stop` does not behave properly on BSD systems
@jaredmorrow jaredmorrow merged commit 818abe2 into master Dec 5, 2012
@ghost ghost assigned jaredmorrow Dec 6, 2012
hmmr pushed a commit that referenced this pull request Nov 8, 2016
Adds `getpid` as a way to get the PID of the running node.  This
also options that were missing from the usage text.

Supports #251
hmmr pushed a commit that referenced this pull request Nov 8, 2016
In BSD systems the regular expression was failing that attempted
to capture the PID of the running Riak node.  This PID was used
in the `riak stop` command to properly wait for a node to stop.

This change fixes the situation by replacing the fragile shell
methods of getting the PID with an erlang / nodetool based
method.  In addtion a `riak getpid` function has been added
for general admin use.

Addresses #251
hmmr pushed a commit that referenced this pull request Nov 8, 2016
@hazen hazen deleted the gh251-riak-stop-bsd branch January 3, 2017 16:12
martincox pushed a commit that referenced this pull request Jan 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants