Baseflow / Baseflow/flutter_cache_manager
CacheManager: does not wait for data to be persisted. Potential consistency issue
- 主要言語
- Dart
- スター
- 809
- フォーク
- 510
- 平均マージ
- 6分
- マージ済み PR(30日)
- 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