Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content

prevent file deletion due to concurrency issue

Vincent Bourgmayer requested to merge 732-one-more-fix into v1-oreo

Description

  1. Fix file deletion happening due to concurrency issue.
  2. Force Periodic scan to only start if no sync is already running or pending
  3. prevent new Sync to start when periodic scan is running

Technical details

Triggering case:

Given a file F1 is being uploaded
When eDrive start to check remote content (for periodic scan)
Then F1 is not fully uploaded yet
Then F1 is not listed as remote content
When F1 is uploaded 
Then DB is updated 
When eDrive list content from Database
Then it get data about uploaded F1 while F1 is still not listed in remote content
Then F1 is considered as being remotly removed
Then eDrive generate a local deletion request.

Tests

Issues

https://gitlab.e.foundation/e/os/backlog/-/issues/732#note_334524

10 commandments of code reviews

👪 https://gitlab.e.foundation/internal/wiki/-/wikis/development/code-review

Edited by Vincent Bourgmayer

Merge request reports

Loading