You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Operator could be missing removing policies from dead apps.
on line 46 of application syncer function Operate()
We exit early rather than continuing over the rest of the list. This could cause a single continuous failure in the db to create a buildup of autoscaler policies without apps.
func (asApplicationSynchronizer) Operate() {
// Get all the application details from policyDBappIds, err:=as.policyDb.GetAppIds()
iferr!=nil {
as.logger.Error("failed-to-get-apps", err)
return
}
// For each app check if they really exist or not via CC api callforappID:=rangeappIds {
_, err=as.cfClient.GetApp(appID)
iferr!=nil {
as.logger.Error("failed-to-get-app-info", err)
ifmodels.IsNotFound(err) {
// Application does not exist, lets clean up app details from policyDBerr=as.policyDb.DeletePolicy(appID)
iferr!=nil {
as.logger.Error("failed-to-prune-non-existent-application-details", err)
>>>here//TODO make this a continue and write a test.return
}
as.logger.Info("successfully-pruned-non-existent-applcation", lager.Data{"appid": appID})
}
}
}
}
The text was updated successfully, but these errors were encountered:
Operator could be missing removing policies from dead apps.
on line 46 of application syncer function Operate()
We exit early rather than continuing over the rest of the list. This could cause a single continuous failure in the db to create a buildup of autoscaler policies without apps.
The text was updated successfully, but these errors were encountered: