From 39a218f8edbf59b17a0e59b091d71880c1743078 Mon Sep 17 00:00:00 2001 From: Powerfool Date: Mon, 18 Dec 2023 21:27:23 +0800 Subject: [PATCH] Remove speedup of observer deletion (#142) * fix(observer): remove speedup of observer deletion --- internal/resource/observer/observer_task.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/internal/resource/observer/observer_task.go b/internal/resource/observer/observer_task.go index ae97d3052..ecbe57795 100644 --- a/internal/resource/observer/observer_task.go +++ b/internal/resource/observer/observer_task.go @@ -646,15 +646,6 @@ func (m *OBServerManager) WaitOBServerDeletedInCluster() tasktypes.TaskError { } else if err != nil { m.Logger.Error(err, "Query observer info failed") } - obunits, err := operationManager.ListUnitsWithServerIP(observerInfo.Ip) - if err != nil { - return errors.Wrapf(err, "List units on server "+observerInfo.Ip) - } - if len(obunits) == 0 { - m.Logger.Info("none of units left on observer, deleted") - deleted = true - break - } time.Sleep(time.Second) } if !deleted {