Unverified Commit 7b24399f authored by k8s-ci-robot's avatar k8s-ci-robot Committed by GitHub

Merge pull request #71440 from vladimirvivien/csi-registration-annotation-fix

Fix for race condition caused by concurrent fsnotify (CREATE and REMOVE) in kubelet/plugin_watcher.go
parents 22ff2673 e86bdc79
...@@ -111,7 +111,7 @@ func (w *Watcher) Start() error { ...@@ -111,7 +111,7 @@ func (w *Watcher) Start() error {
//TODO: Handle errors by taking corrective measures //TODO: Handle errors by taking corrective measures
w.wg.Add(1) w.wg.Add(1)
go func() { func() {
defer w.wg.Done() defer w.wg.Done()
if event.Op&fsnotify.Create == fsnotify.Create { if event.Op&fsnotify.Create == fsnotify.Create {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment