syncdamon may miss file creation in extreme cases

Bug #373940 reported by Lucio Torre on 2009-05-09
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu One Client
Medium
Ubuntu One Foundations+ team
ubuntuone-client (Ubuntu)
Medium
Ubuntu One Foundations+ team

Bug Description

when we create a directory because it was created in the server, we dont launch LR, we just add the watch.
if the user manages to put a file in that brief moment, syncdaemon wont see its creation. (next LR will find it, maybe the server will delete it)

This is a rare case, but if we could just launch LR on the directory, it would be ok. we cant do that because if we start a download before LR finishes it will find the .partial and remove it, breaking the download.

we should fix this in a better way

Changed in ubuntuone-client:
assignee: nobody → Facundo Batista (facundo)
importance: Undecided → Medium
milestone: none → beta2
status: New → Confirmed
Facundo Batista (facundo) wrote :

Maybe the best would have to have a "scan this directory but ignore a .partial if you find it" mode, like:

    scan_dir("dirpath", ignore_dot_partial=True)

What do you think?

Facundo Batista wrote:
> Maybe the best would have to have a "scan this directory but ignore a
> .partial if you find it" mode, like:
>
> scan_dir("dirpath", ignore_dot_partial=True)
>
> What do you think?
>
ium not sure wait. lets wait until we have a clear solution to the LR+SR
timings issue.

Lucio Torre (lucio.torre) wrote :

this has to do with LR working while the state of files changes. facundo will make LR block on each directory.

Facundo Batista (facundo) wrote :

We can not make LR blocking (well, yes, we can, but will imply accessing and modifying the pyinotify internals), so we need to throw more brain on this.

Changed in ubuntuone-client:
milestone: beta2 → later
Changed in ubuntuone-client:
assignee: Facundo Batista (facundo) → Ubuntu One Foundations+ team (ubuntuone-foundations+)
tags: added: chicharra chicharra-maverick
Changed in ubuntuone-client (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
tags: added: foundations+
Changed in ubuntuone-client (Ubuntu):
assignee: nobody → Ubuntu One Foundations+ team (ubuntuone-foundations+)
tags: added: chicharra-natty
removed: chicharra-maverick
tags: added: chicharra-oneiric
removed: chicharra-natty
dobey (dobey) on 2011-06-23
Changed in ubuntuone-client:
milestone: later → none
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers