Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove lock acquisition in ClusterCache.GetAPIResources() #543

Merged

Conversation

jessesuen
Copy link
Member

Partially addresses argoproj/argo-cd#15850.

The lock we were acquiring in GetAPIResources() was unnecessary and caused Argo CD app reconciliation to spend extra time waiting to get API resource information.

@codecov
Copy link

codecov bot commented Oct 6, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (a00ce82) 54.60% compared to head (a1da0c1) 54.63%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #543      +/-   ##
==========================================
+ Coverage   54.60%   54.63%   +0.03%     
==========================================
  Files          41       41              
  Lines        4641     4638       -3     
==========================================
  Hits         2534     2534              
+ Misses       1911     1908       -3     
  Partials      196      196              
Files Coverage Δ
pkg/cache/cluster.go 49.47% <ø> (+0.19%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jessesuen jessesuen force-pushed the fix/api-resources-lock-contention branch from fc49f37 to a1da0c1 Compare October 11, 2023 17:30
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.3% 0.3% Duplication

@jessesuen jessesuen merged commit 9a03edb into argoproj:master Oct 12, 2023
5 checks passed
@jessesuen jessesuen deleted the fix/api-resources-lock-contention branch November 17, 2023 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants