Fix update reliability problem

Bug #1415488 reported by Jussi Pakkanen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mediascanner2 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Currently the dash does not always get results when querying during system scans. The reason for this is that reads and writes clash with each other in SQLite's default journaling mode. There is a retry logic but sometimes it still fails even with 100 retries.

SQLite has a solution for this which is moving to WAL logging. Unfortunately that requires read/write access to the db and some auxiliary files even for readers (if you try it works, but all queries return empty). This is prohibited by current app armor policy.

There does not seem to be a simple solution for this issue. Ones with more work include:

- loosening app armor rules for apps that need the db (music-app, others?)
- moving all queries behind a dbus service

Related branches

affects: mediascanner2 → mediascanner2 (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.