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

Implement meta cache #2371

Merged
merged 11 commits into from
Aug 11, 2023
Merged

Implement meta cache #2371

merged 11 commits into from
Aug 11, 2023

Conversation

FinalT
Copy link
Member

@FinalT FinalT commented Aug 6, 2023

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Aug 6, 2023

Codecov Report

Merging #2371 (306cbd8) into main (8b43135) will decrease coverage by 0.18%.
The diff coverage is 65.82%.

❗ Current head 306cbd8 differs from pull request most recent head 3fff288. Consider uploading reports for the commit 3fff288 to get more accurate results

@@            Coverage Diff             @@
##             main    #2371      +/-   ##
==========================================
- Coverage   44.27%   44.09%   -0.18%     
==========================================
  Files         304      305       +1     
  Lines       18528    18604      +76     
==========================================
+ Hits         8203     8204       +1     
- Misses       9467     9541      +74     
- Partials      858      859       +1     
Files Changed Coverage Δ
...scovery/service_instances_changed_listener_impl.go 2.30% <15.78%> (+2.30%) ⬆️
registry/servicediscovery/store/cache_manager.go 81.66% <81.66%> (ø)

... and 3 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Contributor

@chickenlj chickenlj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Copy link
Member

@justxuewei justxuewei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work, Thanks @FinalT! A few comments for you:

registry/servicediscovery/store/cache_manager.go Outdated Show resolved Hide resolved
common/constant/key.go Outdated Show resolved Hide resolved
registry/servicediscovery/store/cache_manager.go Outdated Show resolved Hide resolved
}

// destroy stops the cache expiration routine, clears the cache and removes the cache file.
func (cm *CacheManager) destroy() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这块逻辑看着没有地方使用,是否需要?

@FinalT
Copy link
Member Author

FinalT commented Aug 10, 2023

@justxuewei please rerun ci

@sonarcloud
Copy link

sonarcloud bot commented Aug 10, 2023

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 2 Code Smells

No Coverage information No Coverage information
9.7% 9.7% Duplication

Copy link
Member

@justxuewei justxuewei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm, thanks!

@justxuewei justxuewei merged commit 1e78aaf into apache:main Aug 11, 2023
6 checks passed
@FinalT FinalT deleted the cache branch October 25, 2023 13:07
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.

6 participants