Closed yuwenma closed 1 year ago
/assign @justinsb
Thanks for fixing. If we ever do a higher-performance version of the storage, we should snapshot objects
to avoid locking everything during the initial stream of objects. But this isn't intended as a high performance mock, so safe & correct is good here!
Not sure if we need a rebase to pick up you go 1.20 fix, I'll try to trigger a retest.
/approve /lgtm
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: justinsb, yuwenma
The full list of commands accepted by this bot can be found here.
The pull request process is described here
Thanks for rebasing
/lgtm
What this PR does / why we need it: This PR fixes a data race issue in test where two threads in MockKubeAPIserver memorystorage read/write to the same
resourceInformation
Verify With this PR, the following command should no longer give the data race warning (see data race log)
data race log
Which issue(s) this PR fixes: