Skip to content

Commit

Permalink
Fix TestCCCache_RefreshOnCacheMiss flaky tests (#15397)
Browse files Browse the repository at this point in the history
* fix refreshOnCacheMiss flaky tests by refactoring getResource logic to use one lock per resource_guid

* improve performance by using RWMutex

* reset updateOnce channel in the cccache_test file

* refactor readData method to use listApplications method

* refactor readData to use listSpaces method

* refactor readData to use listOrgs method

* refactor readData to use listOrgQuotas method

* refactor readData to use listProcesses method

* refactor readData to use listIsolationSegments method

* refactor readData to use prepareCFApplications method

* reorder methods

* make all comments lowercase

* cleanup and add comments

* remove TODO comment

* add getLockForResource method + cleanup and comments

* rename locksByResourceGUID to locksByGUID
  • Loading branch information
NouemanKHAL authored Feb 3, 2023
1 parent 596163c commit d4d7fa8
Show file tree
Hide file tree
Showing 2 changed files with 276 additions and 282 deletions.
Loading

0 comments on commit d4d7fa8

Please sign in to comment.