Skip to content

Commit

Permalink
Remove speedup of observer deletion (#142)
Browse files Browse the repository at this point in the history
* fix(observer): remove speedup of observer deletion
  • Loading branch information
powerfooI authored Dec 18, 2023
1 parent c8b94f9 commit 39a218f
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions internal/resource/observer/observer_task.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 39a218f

Please sign in to comment.