-
Notifications
You must be signed in to change notification settings - Fork 537
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
Changed riak attach
to use a remsh
#254
Conversation
This serves to insulate the running riak Erlang Virtual Machine from accidental CTRL-C's causing it to halt. The original behavior has been moved to `riak attach-direct`
@@ -23,6 +23,31 @@ RUNNER_LOG_DIR={{runner_log_dir}} | |||
# Note the trailing slash on $PIPE_DIR/ | |||
PIPE_DIR={{pipe_dir}} | |||
RUNNER_USER={{runner_user}} | |||
PLATFORM_DATA_DIR={{platform_data_dir}}#!/bin/sh | |||
# -*- tab-width:4;indent-tabs-mode:nil -*- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we want to do this stuff, it belongs at the top, not at line 27.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That stuff is already at the top, looks like a bad merge/diff to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's copypasta.
So if you look at the resulting file, there is two of everything. Take a look at your branch and re-push to this PR. |
Also, this might need to wait until after we branch 1.3 unless there is a bug associated that is a must-need. |
That looks a lot better. I think that it can wait till after 1.3, although it's a pretty strong nice-to-have. |
So, if it is a nice-to-have, I'd be more inclined to +1 if the new functionality was something like attach-nice with |
My feeling is that attach should go away, and I'm willing to wait for 1.4 I'll work with charlie to get an update to riak_test. On Thu, Dec 6, 2012 at 12:57 PM, Jared Morrow notifications@github.comwrote:
|
@evanmcc Disagree. In scenarios where disterl is unresponsive, remsh might refuse to connect but attach always has the pipes. |
I'd just not like it to be the "go to" version of how we connect. I like the idea of keeping the piped version in, just as a different name. Working on some riak-tests now to test the behavior. |
@seancribbs this retains attach as attach-direct with all of its On Thu, Dec 6, 2012 at 1:13 PM, Charlie Voiselle
|
@evanmcc I know, I was more commenting on your suggestion to remove it entirely. Aside from the inability for Erlang to daemonize itself sensibly, having the run_erl/to_erl pair can be extremely helpful for support. |
I totally agree, Sean. By go away, I meant as the default. Sorry if there On Thu, Dec 6, 2012 at 1:40 PM, Sean Cribbs notifications@github.comwrote:
|
@evanmcc 🍻 |
I might also mention that running |
Looking into what it would take to adding a restricted shell. It doesn't On Sun, Dec 9, 2012 at 11:27 AM, Sean Cribbs notifications@github.comwrote:
|
My 5 cents: #265 (comment) |
I vote we make attach use remsh by default, here are my reasons:
|
I'll repeat myself here, but why use run_erl in the first place? Does it have any benefits except logs rotation? |
@doubleyou See my comment above. If disterl is unresponsive (busy_dist_port, e.g.), connecting to the fifos will still work. |
Any objections to merging this before the upcoming freeze? I note that it's still hanging out here, lacking consensus. I'd like to re-review the code, but my opinion is that it should go in. |
If we go with this, let's also update Riak Enterprise, Riak CS, Stanchion and any other projects which have an attach feature. |
@evanmcc I'd like to see a test added to https://github.com/basho/riak_test/blob/master/tests/basic_command_line.erl if new behavior and old behavior (moving run_erl to a different command) is tested and working, I'm +1. @reiddraper if it makes it in, I'll move it into node_package and add it to cs/stanchion/etc. |
I'll pick this up for testing. |
Wrote partial riak_test, but having trouble with some riak_test functionality. Tested a lot by hand, and added details to release notes. @angrycub if you can handle a PR to docs.basho.com to update any mention of |
Changed `riak attach` to use a remsh
Adds attach_direct function to correspond to `riak attach-direct` as well as change the basic_command_line test to test both `riak attach` and `riak attach-direct`. Corresponds to functionality added in basho/riak#254
you broke my ❤️ @angrycub, YOU BROKE MY ❤️! |
Add riak-admin ensemble-status command
This serves to insulate the running riak Erlang Virtual Machine from
accidental CTRL-C's causing it to halt. The original behavior has been
moved to
riak attach-direct