mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-01 18:58:18 +00:00
Fix:slow memory leak may be in kubelet podworkers.isWorking
This commit is contained in:
@@ -282,7 +282,8 @@ func (p *podWorkers) checkForUpdates(uid types.UID) {
|
||||
p.podUpdates[uid] <- workUpdate
|
||||
delete(p.lastUndeliveredWorkUpdate, uid)
|
||||
} else {
|
||||
p.isWorking[uid] = false
|
||||
// put this line in removeWorker may cause dead lock, so keep reset it here
|
||||
delete(p.isWorking, uid)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user