mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 02:27:26 +01:00
e83827a102d15e80d11f61b54ef66aff19dbb7d8
QA round 53 isolation: SSH_OPTS included -n which redirects ssh stdin from /dev/null. With bash -s, remote bash reads script from stdin — stdin is EOF (because -n) so bash exits immediately, daemon never starts, master.log stays empty. QA evidence: dbg.sh on m01 reproduced heredoc form WITHOUT -n; bash -s correctly read heredoc, blockmaster launched, port 9180 bound, proof.txt confirmed heredoc execution. Fix per architect option (A): split SSH options into two sets: SSH_OPTS_BASE — shared: -T (no PTY) + BatchMode=yes SSH_OPTS — base + -n; for ssh host CMD patterns SSH_OPTS_LAUNCH — base only (no -n); for ssh host bash -s launch_m01 / launch_m02 use SSH_OPTS_LAUNCH. PTY-hang protection comes from -T alone, present in both sets. Verified: launch_m01 heredoc body executes; variable expansion works; remote-shell PID resolves correctly.
Languages
Go
84.6%
Rust
7.8%
Shell
2.7%
templ
1.6%
Java
1%
Other
2%