Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: avoid data race on CRI pod stop
Message: ``` WARNING: DATA RACE Write at 0x00c000a9d4d0 by goroutine 154: github.com/talos-systems/talos/internal/pkg/cri.stopAndRemove.func1() /src/internal/pkg/cri/pods.go:188 +0x312 golang.org/x/sync/errgroup.(*Group).Go.func1() /.cache/mod/golang.org/x/sync@v0.0.0-20210220032951-036812b2e83c/errgroup/errgroup.go:57 +0x94 Previous write at 0x00c000a9d4d0 by goroutine 276: github.com/talos-systems/talos/internal/pkg/cri.stopAndRemove.func1() /src/internal/pkg/cri/pods.go:188 +0x312 golang.org/x/sync/errgroup.(*Group).Go.func1() /.cache/mod/golang.org/x/sync@v0.0.0-20210220032951-036812b2e83c/errgroup/errgroup.go:57 +0x94 ``` This bug might lead to incorrect pod stop handling at worst. Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com> (cherry picked from commit 1a85c14)
- Loading branch information