Baseflow / Baseflow/flutter_cache_manager
CacheManager: does not wait for data to be persisted. Potential consistency issue
- Lenguaje dominante
- Dart
- Estrellas
- 809
- Forks
- 510
- Merge medio
- 6 min
- PR fusionados (30 d)
- 1
Descripción
## 🐛 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
Guía de contribución
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- dart, flutter
- Área
- databases, mobile-dev
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Tranquilo
- Claridad
- Bastante claro
- Aptitud para principiantes
- 55/100