-
Kubernetes Submit Queue authored
Automatic merge from submit-queue LRUExpireCache#Get requires write lock **What this PR does / why we need it**: [LRUExpireCache#Get](https://github.com/kubernetes/kubernetes/blob/dbfad789e35979083b8d4b35a4cb405c324cc485/pkg/util/cache/lruexpirecache.go#L48) requires write lock since [groupcache/lru#Get](https://github.com/golang/groupcache/blob/a6b377e3400b08991b80d6805d627f347f983866/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
804de8a1