Closed sanposhiho closed 1 year ago
In reservedResourceAmount, it didn't take any lock before accessing c.cache and it caused concurrent map read and map write. We can reproduce it with the updated test in pkg/controllers/reserved_resource_amounts_test.go.
reservedResourceAmount
c.cache
concurrent map read and map write
In
reservedResourceAmount
, it didn't take any lock before accessingc.cache
and it causedconcurrent map read and map write
. We can reproduce it with the updated test in pkg/controllers/reserved_resource_amounts_test.go.