Skip to content

Restart the old-fashioned way#143

Merged
macintux merged 1 commit intodevelopfrom
jrd-restart
Jun 19, 2014
Merged

Restart the old-fashioned way#143
macintux merged 1 commit intodevelopfrom
jrd-restart

Conversation

@macintux
Copy link
Contributor

Related to #131, and per discussions with cliserv, restart isn't all that reliable. Here's a semantic change that may or may not be the way we want to proceed, but since I was in the mood to do something about it, here it be.

Worked "properly" (per the new semantic) in simple testing.

/cc @jaredmorrow @lukebakken

@macintux macintux added this to the 2.0-RC milestone May 23, 2014
@macintux
Copy link
Contributor Author

It occurred to me later that I didn't attempt to handle the case where stop failed (by not attempting a start); on the other hand, I'm not certain, that's the right thing to do. Maybe blindly trying to start it is best in case it does in fact stop.

@reiddraper reiddraper self-assigned this Jun 18, 2014
@reiddraper
Copy link

Is this new code, or a 'revert' to the way it used to work? If so, what's the SHA of the old code?

@macintux
Copy link
Contributor Author

Maybe @jaredmorrow knows otherwise, but I'm not aware of any previous incarnation of this behavior.

@reiddraper
Copy link

Ah, when I read 'the old-fashioned way', I was thinking that meant the way 'it used to work'. Carry on.

@macintux
Copy link
Contributor Author

Gotcha. No, just John trying to be too clever. "The blue collar way"

@reiddraper
Copy link

Ha, fair enough.

@reiddraper
Copy link

Testing with Riak now. @macintux what do you think about amending the commit to include a more detailed commit message? And maybe a comment about restart continuing to try and start the node, even if the stop failed?

@reiddraper
Copy link

I've done the following to review:

  • Read through the code
  • Test this branch of node_package with Riak
  • Check for bashisms (checkbashisms priv/base/runner)

+1 from me. Might be wise to have @jaredmorrow take a look as well though.

@macintux
Copy link
Contributor Author

I'll update the commit message

@jaredmorrow
Copy link
Contributor

+1

  favor of a hard stop/start
* Note: will attempt a start regardless of whether the stop appears
  to have succeeded
@macintux
Copy link
Contributor Author

All cleaned up

@jaredmorrow
Copy link
Contributor

👍

macintux added a commit that referenced this pull request Jun 19, 2014
Restart the old-fashioned way
@macintux macintux merged commit 574edfe into develop Jun 19, 2014
@macintux macintux deleted the jrd-restart branch June 19, 2014 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants