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
metrics.SendErrorLogAndMetric(util.DaemonDataplaneID, "[DataPlane] failed to refresh endpoints while updating pods. err: [%s]", err.Error())
222
-
returnfmt.Errorf("[DataPlane] failed to refresh endpoints while updating pods. err: [%w]", err)
222
+
// return as success since this can be retried irrespective of other operations
223
+
returnnil
223
224
}
224
225
225
226
// lock updatePodCache while driving goal state to kernel
226
227
// prevents another ApplyDataplane call from updating the same pods
227
228
dp.updatePodCache.Lock()
228
229
deferdp.updatePodCache.Unlock()
229
230
230
-
varaggregateErrerror
231
231
forpodKey, pod:=rangedp.updatePodCache.cache {
232
232
err:=dp.updatePod(pod)
233
233
iferr!=nil {
234
-
ifaggregateErr==nil {
235
-
aggregateErr=fmt.Errorf("failed to update pod while applying the dataplane. key: [%s], err: [%w]", podKey, err)
236
-
} else {
237
-
aggregateErr=fmt.Errorf("failed to update pod while applying the dataplane. key: [%s], err: [%s]. previous err: [%w]", podKey, err.Error(), aggregateErr)
238
-
}
234
+
// move on to the next and later return as success since this can be retried irrespective of other operations
239
235
metrics.SendErrorLogAndMetric(util.DaemonDataplaneID, "failed to update pod while applying the dataplane. key: [%s], err: [%s]", podKey, err.Error())
240
236
continue
241
237
}
238
+
242
239
delete(dp.updatePodCache.cache, podKey)
243
240
}
244
-
ifaggregateErr!=nil {
245
-
returnfmt.Errorf("[DataPlane] error while updating pods: %w", aggregateErr)
246
-
}
247
241
}
248
242
returnnil
249
243
}
@@ -395,17 +389,18 @@ func (dp *DataPlane) createIPSetsAndReferences(sets []*ipsets.TranslatedIPSet, n
0 commit comments