-
Notifications
You must be signed in to change notification settings - Fork 4k
Ensure that elixir escript does not read from stdin #10108
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
Conversation
9ab2e63
to
a73031c
Compare
a73031c
to
910e0df
Compare
To test, use this shell script: https://github.com/lukebakken/misc/blob/main/sh/add_users.sh You'll have to adjust the path to Without the changes in this PR, only the first user will be added from This is the reason why - https://stackoverflow.com/a/13800476/1466825 It took quite a bit of trial-and-error to figure out how to correctly pass |
dc5026f
to
761d592
Compare
6e690f3
to
12bb6a1
Compare
Discovered while testing #10108 by using the lukebakken/docker-rabbitmq-cluster project. That project, by default, uses longnames for node names. When testing classic peer discovery, starting a peer node would time out every time.
21e8de4
to
9c05a43
Compare
Discovered while testing #10108 by using the lukebakken/docker-rabbitmq-cluster project. That project, by default, uses longnames for node names. When testing classic peer discovery, starting a peer node would time out every time. Ensure `host` is set
Discovered while testing #10108 by using the lukebakken/docker-rabbitmq-cluster project. That project, by default, uses longnames for node names. When testing classic peer discovery, starting a peer node would time out every time. Ensure `host` is set
9c05a43
to
77295d5
Compare
Discovered while testing #10108 by using the lukebakken/docker-rabbitmq-cluster project. That project, by default, uses longnames for node names. When testing classic peer discovery, starting a peer node would time out every time. Ensure `host` is set
This change ensures that you do not have to redirect `stdin` from `/dev/null` to use `rabbitmqctl` and related utilities in a `while` / `read` shell loop. References: * https://github.com/lukebakken/vesc-1073/blob/main/delete.bash#L24-L32 * rabbitmq/support-tools#38
77295d5
to
cb28ffc
Compare
This does work as expected but I had to build a generic UNIX package in order to observe the difference. Bazel-build |
I had to remove the contents of the generated |
Discovered while testing #10108 by using the lukebakken/docker-rabbitmq-cluster project. That project, by default, uses longnames for node names. When testing classic peer discovery, starting a peer node would time out every time. Ensure `host` is set
This change ensures that you do not have to redirect
stdin
from/dev/null
to userabbitmqctl
and related utilities in awhile
/read
shell loop.References:
TODO: test with inter-node TLS.