Bug 1889936 - Backport timecache LRU fix
Summary: Backport timecache LRU fix
Status: POST
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Node
Version: 4.6.z
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 4.6.z
Assignee: Ryan Phillips
QA Contact: Sunil Choudhary
Depends On: 1889891
TreeView+ depends on / blocked
Reported: 2020-10-21 01:31 UTC by OpenShift BugZilla Robot
Modified: 2020-11-27 01:01 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed:
Target Upstream Version:

Attachments (Terms of Use)

System ID Priority Status Summary Last Updated
Github openshift kubernetes pull 419 None open [release-4.6] Bug 1889936: UPSTREAM: 94774: Fix misusage of RLock in timeCache lru.Cache.Get() 2020-11-27 01:01:17 UTC

Description OpenShift BugZilla Robot 2020-10-21 01:31:24 UTC
+++ This bug was initially created as a clone of Bug #1889891 +++

Description of problem:
Lru's Get() method also updates the least recent usage information. So, we should not use RLock() and even RWLock here.
An alternative fix is just using github.com/hashicorp/golang-lru, but that will introduce more diffs. If that is the better fix, I can also do that.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:

Actual results:

Expected results:

Additional info:

Note You need to log in before you can comment on or make changes to this bug.