DownloadIndex has not update status, when we got SQLiteFullException: database or disk is full
- Dominant language
- Java
- Stars
- 21.9k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Hello, I have a situation, when I tried to download multiple media items and my device didn't have enough memory for it. So, when memory is over, I got an event in `DownloadManager.Listener.onDownloadChanged()` - Download.STATE_FAILED and exception:
`com.google.android.exoplayer2.upstream.cache.Cache$CacheException: com.google.android.exoplayer2.database.DatabaseIOException: android.database.sqlite.SQLiteException: cannot rollback - no transaction is active (code 1 SQLITE_ERROR)`
Ok, but when I wanted to show current download state for all media items(I use `downloadManager.downloadIndex.getDownloads()` for it), I saw that my media Item didn't have STATE_FAILED status, it had previous status(STATE_DOWNLOADING).
Could you explain please, is it normal logic for this situation?
Contributor guide
Assessment
This issue has not been assessed yet.