Skip to content

Conversation

@avinashkolluru
Copy link
Contributor

@avinashkolluru avinashkolluru commented Oct 7, 2021

Description

  • Added support for async cache loading in EntityCache
  • Using the new async cache loading functionality in EdsCacheClient

Checklist:

  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules

this.edsClient = edsClient;
fqnToServiceEntityCache =
CacheBuilder.newBuilder()
.maximumSize(10000)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ability to configure these caches is an existing problem. Will address them in a different PR.

@github-actions

This comment has been minimized.

@codecov
Copy link

codecov bot commented Oct 7, 2021

Codecov Report

Merging #267 (5b94387) into main (f650977) will increase coverage by 0.05%.
The diff coverage is 89.33%.

Impacted file tree graph

@@             Coverage Diff              @@
##               main     #267      +/-   ##
============================================
+ Coverage     80.20%   80.26%   +0.05%     
- Complexity     1162     1166       +4     
============================================
  Files           102      102              
  Lines          4512     4535      +23     
  Branches        421      421              
============================================
+ Hits           3619     3640      +21     
- Misses          695      696       +1     
- Partials        198      199       +1     
Flag Coverage Δ
unit 80.26% <89.33%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...cher/enrichment/clients/DefaultClientRegistry.java 0.00% <0.00%> (ø)
...ace/enricher/StructuredTraceEnricherConstants.java 0.00% <ø> (ø)
...trace/enricher/StructuredTraceEnrichProcessor.java 86.84% <86.66%> (-2.05%) ⬇️
...richer/enrichment/enrichers/cache/EntityCache.java 96.00% <94.73%> (+0.76%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f650977...5b94387. Read the comment docs.

Copy link
Contributor

@kotharironak kotharironak left a comment

Choose a reason for hiding this comment

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

lgtm

backendIdAttrsToEntityCache =
CacheBuilder.newBuilder()
.maximumSize(10000)
.expireAfterWrite(5, TimeUnit.MINUTES)
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we missing refreshAfterWrite here ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. Fixed it.

@github-actions

This comment has been minimized.

@avinashkolluru avinashkolluru merged commit 8e72605 into main Oct 8, 2021
@avinashkolluru avinashkolluru deleted the enable_async_cache_loading branch October 8, 2021 05:27
@github-actions
Copy link

github-actions bot commented Oct 8, 2021

Unit Test Results

  70 files  ±0    70 suites  ±0   52s ⏱️ -8s
379 tests ±0  379 ✔️ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 8e72605. ± Comparison against base commit f650977.

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.

3 participants