Skip to content

Commit

Permalink
nfd-master: log errors on node update retries
Browse files Browse the repository at this point in the history
  • Loading branch information
marquiz committed Feb 16, 2024
1 parent 41e903d commit 044fd4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/nfd-master/node-updater-pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (u *nodeUpdaterPool) processNodeUpdateRequest(queue workqueue.RateLimitingI
nodeUpdateRequests.Inc()
if err := u.nfdMaster.nfdAPIUpdateOneNode(nodeName.(string)); err != nil {
if queue.NumRequeues(nodeName) < 15 {
klog.InfoS("retrying node update", "nodeName", nodeName)
klog.InfoS("retrying node update", "nodeName", nodeName, "lastError", err)
queue.AddRateLimited(nodeName)
return true
} else {
Expand Down

0 comments on commit 044fd4a

Please sign in to comment.