syncdamon may miss file creation in extreme cases

Bug #373940 reported by Lucio Torre
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu One Client
Won't Fix
Medium
Ubuntu One Foundations+ team
ubuntuone-client (Ubuntu)
Won't Fix
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
Revision history for this message
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?

Revision history for this message
Lucio Torre (lucio.torre) wrote : Re: [Bug 373940] Re: syncdamon may miss file creation in extreme cases

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.

Revision history for this message
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.

Revision history for this message
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)
Changed in ubuntuone-client:
milestone: later → none
Changed in ubuntuone-client:
status: Confirmed → Won't Fix
Changed in ubuntuone-client (Ubuntu):
status: Confirmed → Won't Fix
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.