-
Notifications
You must be signed in to change notification settings - Fork 77
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
feat: redis cache should fallback to internal in case of error #2861
Conversation
Signed-off-by: nikolay <[email protected]>
Signed-off-by: nikolay <[email protected]>
Signed-off-by: nikolay <[email protected]>
Signed-off-by: nikolay <[email protected]>
Signed-off-by: nikolay <[email protected]>
packages/relay/tests/lib/services/cacheService/cacheService.spec.ts
Outdated
Show resolved
Hide resolved
packages/relay/tests/lib/services/cacheService/cacheService.spec.ts
Outdated
Show resolved
Hide resolved
packages/relay/tests/lib/services/cacheService/cacheService.spec.ts
Outdated
Show resolved
Hide resolved
Signed-off-by: nikolay <[email protected]>
Signed-off-by: nikolay <[email protected]>
Signed-off-by: nikolay <[email protected]>
🚨 Memory Leak Detected 🚨A potential memory leak has been detected in the test titled Details📊 Memory Leak Detection Report 📊 GC Type: Scavenge Heap Statistics (before vs after executing the test):
Heap Space Statistics (before vs after executing the test):
RecommendationsPlease investigate the memory allocations in this test, focusing on objects that are not being properly deallocated. |
Signed-off-by: nikolay <[email protected]>
Signed-off-by: nikolay <[email protected]>
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2861 +/- ##
==========================================
+ Coverage 82.66% 83.05% +0.38%
==========================================
Files 49 49
Lines 3554 3559 +5
Branches 751 751
==========================================
+ Hits 2938 2956 +18
+ Misses 370 357 -13
Partials 246 246
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Description:
Currently, in the cacheService.ts the methods are written in a way that suggests that if an error occurs in Redis during set and getAsync operations we will fallback to the internal cache. However, this doesn't happen.
Related issue(s):
Fixes #2788
Notes for reviewer:
Checklist