From 6fc2fb9bd5e7cdb7558f9ea9bde2a75738fe0894 Mon Sep 17 00:00:00 2001 From: SIGSEGV Date: Mon, 19 Oct 2020 10:22:02 +0800 Subject: [PATCH] Skip atuo-start cluster before scale-out action (#848) Fix https://github.com/pingcap/tiup/issues/823 Signed-off-by: lucklove --- pkg/cluster/manager.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkg/cluster/manager.go b/pkg/cluster/manager.go index e31cd3521b..f5a090fbde 100644 --- a/pkg/cluster/manager.go +++ b/pkg/cluster/manager.go @@ -2138,11 +2138,7 @@ func buildScaleOutTask( afterDeploy(builder, newPart) } - // TODO: find another way to make sure current cluster started builder. - Func("StartCluster", func(ctx *task.Context) error { - return operator.Start(ctx, metadata.GetTopology(), operator.Options{OptTimeout: optTimeout}, tlsCfg) - }). ClusterSSH(newPart, base.User, sshTimeout, sshType, topo.BaseTopo().GlobalOptions.SSHType). Func("Save meta", func(_ *task.Context) error { metadata.SetTopology(mergedTopo)