e2e: more debugging output for lock and elect etcdctl tests

Meant to debug #6464 and #6934

Dumps the output from the etcd/etcdctl servers and SIGQUITs to get a
golang backtrace in case of a hanged process.
This commit is contained in:
Anthony Romano
2017-05-04 18:36:17 -07:00
parent 71d7c85b6b
commit b9f5a00b13
3 changed files with 55 additions and 2 deletions

View File

@ -553,3 +553,11 @@ func (epc *etcdProcessCluster) grpcEndpoints() []string {
}
return eps
}
func (epc *etcdProcessCluster) withStopSignal(sig os.Signal) os.Signal {
ret := epc.procs[0].proc.StopSignal
for _, p := range epc.procs {
p.proc.StopSignal = sig
}
return ret
}