Parcourir la source

functional-tester/agent: stop proxy on "fail archive"

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Gyuho Lee il y a 7 ans
Parent
commit
3f390622f7
1 fichiers modifiés avec 1 ajouts et 3 suppressions
  1. 1 3
      tools/functional-tester/agent/handler.go

+ 1 - 3
tools/functional-tester/agent/handler.go

@@ -292,9 +292,7 @@ func (srv *Server) handleKillEtcd() (*rpcpb.Response, error) {
 }
 
 func (srv *Server) handleFailArchive() (*rpcpb.Response, error) {
-	// TODO: stop/restart proxy?
-	// for now, just keep using the old ones
-	// if len(srv.advertisePortToProxy) > 0
+	srv.stopProxy()
 
 	// exit with stackstrace
 	srv.logger.Info("killing etcd process", zap.String("signal", syscall.SIGQUIT.String()))