Files
kubernetes/pkg/util
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-07-29 02:37:00 -04:00
2016-07-16 13:48:21 -04:00
2016-07-16 13:48:21 -04:00
2016-07-16 13:48:21 -04:00
2016-08-24 10:17:41 -07:00
2016-08-10 16:45:41 -07:00
2016-07-16 13:48:21 -04:00
2016-08-30 13:06:26 -04:00
2016-08-02 15:12:39 +03:00
2016-08-03 16:38:29 -07:00
2016-08-03 17:46:02 -04:00
2016-07-21 13:07:30 -04:00
2016-08-18 17:01:03 +02:00
2016-08-10 16:45:41 -07:00
2016-07-29 02:37:00 -04:00
2016-07-16 13:48:21 -04:00
2016-07-27 17:22:30 -07:00
2016-07-30 00:07:02 -04:00
2016-08-17 10:40:27 -04:00
2016-07-16 13:48:21 -04:00