зеркало из https://github.com/Azure/ARO-RP.git
Adding retry logic to delete. Related to https://github.com/Azure/ARO-RP/pull/1447
This commit is contained in:
Родитель
11fba06fd7
Коммит
2f585ab0c6
|
@ -284,8 +284,15 @@ func (m *manager) Delete(ctx context.Context) error {
|
|||
return err
|
||||
}
|
||||
|
||||
m.log.Printf("deleting resources")
|
||||
err = m.deleteResources(ctx)
|
||||
// Retry logic due to race condition between PLS and nic
|
||||
// TODO: Follow up on false future return
|
||||
for retry := 0; retry < 3; retry++ {
|
||||
err = m.deleteResources(ctx)
|
||||
if err == nil {
|
||||
break
|
||||
}
|
||||
m.log.Errorf("Failed to delete %s", err.Error())
|
||||
}
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче