Caching results of the `filter` will result to inconsistent cache state
See original GitHub issueCurrently it blocks, but we just got lucky:
Please change the order of filter
and end_caching
Issue Analytics
- State:
- Created a year ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Cache made consistent: Meta's cache invalidation solution
If a cache invalidation gets mishandled, it can indefinitely leave inconsistent values in the cache that are different from what's in the ...
Read more >Caching - Gotchas & Lessons Learned - Manish Pandit's Blog
When data is found in the cache, it is called a hit, and a failure results in a miss. When a miss happens,...
Read more >Advanced topics on caching in Apollo Client
This article describes special cases and considerations when using the Apollo Client cache. Bypassing the cache. Sometimes you shouldn't use the cache for...
Read more >Cache Coherence and Synchronization - Tutorialspoint
Maintaining cache coherency is a problem in multiprocessor system when the processors contain local cache memory. Data inconsistency between different caches ...
Read more >Confusion caching Active Record queries with Rails.cache.fetch
Please note that it's never a good idea to cache ActiveRecord objects. Caching an object may result in inconsistent states and values.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@VitalyFedyunin just wondering if this could be the cause of the test failures I’m seeing in my PR? https://github.com/pytorch/text/pull/1732#issuecomment-1132267901
I just afraid that this
filter
pattern is error prone. And even if I fix deadlock (it is possible), putting filter might lead to cache inconsistency (in case of filter output change between runs).