From 9277508765f9c22bf0f1c6f4c35d4b939ea2aec8 Mon Sep 17 00:00:00 2001 From: srstack Date: Mon, 29 Nov 2021 12:02:53 +0800 Subject: [PATCH] Prohibit the clean operations during scale-out --- pkg/cluster/manager/cleanup.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/cluster/manager/cleanup.go b/pkg/cluster/manager/cleanup.go index 336b91beb0..2f3b819236 100644 --- a/pkg/cluster/manager/cleanup.go +++ b/pkg/cluster/manager/cleanup.go @@ -37,6 +37,11 @@ func (m *Manager) CleanCluster(name string, gOpt operator.Options, cleanOpt oper return err } + // check locked + if err := m.specManager.ScaleOutLockedErr(name); err != nil { + return err + } + metadata, err := m.meta(name) if err != nil { return err