Baseflow / Baseflow/flutter_cache_manager
CacheManager: does not wait for data to be persisted. Potential consistency issue
- 主要语言
- Dart
- 星标
- 809
- 派生
- 510
- 平均合并
- 6 分钟
- 30 天内合并 PR
- 1
描述
## 🐛 Bug Report
due to data consistency issues with JsonCacheInfoRepository, reported in https://github.com/Baseflow/flutter_cache_manager/issues/491, i started checking if i could use 'CacheObjectProvider', it looks fine, but the same issue can occur because cachemanager doesn't wait for data to be persisted because it is missing an "await" on line 232. is this intentional? why?
### Expected behavior
### Reproduction steps
### Configuration
**Version:** 1.x
**Platform:**
- [x] :iphone: iOS
- [x] :robot: Android
贡献指南
调研方向
Inspect CacheManager around line 232 and trace how it persists data through JsonCacheInfoRepository or CacheObjectProvider. First run the existing package tests and look for coverage of persistence ordering; done means the manager does not return before the relevant data is persisted and consistency behavior is covered by a regression test.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- dart, flutter
- 领域
- databases, mobile-dev
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 55/100