Baseflow / Baseflow/flutter_cache_manager

CacheManager: does not wait for data to be persisted. Potential consistency issue

Ouverte
#492 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Dart
Étoiles
809
Forks
510
Merge moyen
6 min
PR mergées (30 j)
1

Description

## 🐛 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?

Image

### Expected behavior

### Reproduction steps

### Configuration

**Version:** 1.x

**Platform:**
- [x] :iphone: iOS
- [x] :robot: Android

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
dart, flutter
Domaine
databases, mobile-dev
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
Calme
Clarté
Plutôt claire
Accessibilité débutants
55/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.