Files
kubernetes/pkg
Kubernetes Submit Queue 804de8a149 Merge pull request #32244 from tksm/fix-cache-race
Automatic merge from submit-queue

LRUExpireCache#Get requires write lock

**What this PR does / why we need it**:

[LRUExpireCache#Get](dbfad789e3/pkg/util/cache/lruexpirecache.go (L48)) requires write lock since [groupcache/lru#Get](a6b377e340/lru/lru.go (L74)) needs to manipulate its list to track recently used item. Currently it uses read lock so it may introduce race condition.

- [test code which introduces race condition with current LRUExpireCache#Get](https://gist.github.com/tksm/17c7a610ed0574c165e6f6edeca351b7#file-lru_race_test-go)

**Which issue this PR fixes** #31081
2016-09-13 14:36:26 -07:00
..
2016-09-09 17:03:27 +08:00
2016-08-31 13:46:40 -07:00
2016-07-16 13:48:21 -04:00
2016-08-25 10:57:31 -07:00
2016-08-22 14:18:15 -04:00
2016-09-01 15:55:34 -07:00
2016-08-22 12:59:54 -07:00
2016-07-16 13:48:21 -04:00