fix(backend): MemoryKVCacheのキャッシュGC処理においてキャッシュが期限切れにならないことがある問題を修正#17512
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #17512 +/- ##
===========================================
+ Coverage 24.87% 24.90% +0.03%
===========================================
Files 1161 1161
Lines 39629 39628 -1
Branches 11041 11041
===========================================
+ Hits 9859 9871 +12
+ Misses 23849 23840 -9
+ Partials 5921 5917 -4 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Contributor
|
このPRによるapi.jsonの差分 |
Contributor
Backend memory usage comparisonBefore GC
After GC
After Request
|
Member
|
なんかテストが通らん |
Member
|
re-runしても落ちるので何かがおかしそう |
Member
Author
|
テストのステップに入るよりも前のステップで落ちてるっぽい…? |
Member
Author
…という点から、ただ単にフレーキーなだけという可能性が高いです。 |
Member
|
謎 |
Member
|
何度やっても成功しない |
Member
|
うぐー! |
Member
Author
|
this.cache.delete()をコメントアウト+テストもskipして成功するか確認中 |
Member
Author
|
MemoryKVCacheというより、使う側の実装とかみ合わせが悪かったようです。 misskey/packages/backend/src/core/CacheService.ts Lines 160 to 164 in 43534d6 |
Member
Author
|
pass |
Member
|
👍🏻 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
タイトルの通りです。
Why
fix #15500
Additional info (optional)
テストを追加し、対応前の状態で流すとfailになること、対応後の状態で流すとpassになることを確認しています
Checklist