diff --git a/pkg/cluster/operation/action.go b/pkg/cluster/operation/action.go index aa2e0ed1ac..65c2834ac3 100644 --- a/pkg/cluster/operation/action.go +++ b/pkg/cluster/operation/action.go @@ -261,6 +261,7 @@ func DestroyClusterTombstone( } instances := (&spec.TiFlashComponent{Specification: cluster}).Instances() + id = s.Host + ":" + strconv.Itoa(s.GetMainPort()) instances = filterID(instances, id) err = StopComponent(getter, instances, options.OptTimeout) diff --git a/pkg/cluster/spec/tiflash.go b/pkg/cluster/spec/tiflash.go index bc3821f9d9..9066999beb 100644 --- a/pkg/cluster/spec/tiflash.go +++ b/pkg/cluster/spec/tiflash.go @@ -108,7 +108,7 @@ func (c *TiFlashComponent) Instances() []Instance { InstanceSpec: s, Name: c.Name(), Host: s.Host, - Port: s.TCPPort, + Port: s.GetMainPort(), SSHP: s.SSHPort, Ports: []int{