• k8s-merge-robot's avatar
    Merge pull request #28153 from jsafrane/flaky-goroutinemap-wait · 5b3b6557
    k8s-merge-robot authored
    Automatic merge from submit-queue
    
    Fixed goroutinemap race on Wait()
    
    sync.WaitGroup produces data races when a GoroutineMap is empty and Wait() and Run() are called at the same time.
    
    From sync.WaitGroup:
    
    >  Note that calls with a positive delta that occur when the counter is zero must happen before a Wait.
    
    Fixes #28128
    Note that this issue affects only PersistentVolume unit tests.
    
    @saad-ali, PTAL
    5b3b6557
Name
Last commit
Last update
..
goroutinemap.go Loading commit data...
goroutinemap_test.go Loading commit data...