Unsubscribing a folder should stop all queued activity on that folder
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu One Client |
Confirmed
|
Medium
|
Ubuntu One Foundations+ team |
Bug Description
When a user selects to unsubscribe (right-click on folder and select "Stop synchronizing on Ubuntu One"), syncdaemon should stop processing that folder and unsubscribe the folder immediately. Otherwise, the user could be stuck waiting for syncdaemon to finish scanning and processing files he doesn't want processed anymore. This takes up computer resources and bandwidth the user doesn't want to waste. This is especially true in cases where a user selects to sync a large folder (both in number and size of files) and decides they want to stop syncing.
-------
WORKAROUND:
1. In a terminal session (Applications-
2. Copy the ID of the folder you want to stop synchronizing
3. In a terminal session run (replacing ID-COPIED-
Note, syncdaemon will do a local rescan of the folder you unsubscribed (stopped syncing) which means it will take some time processing this folder one last time, but will not attempt to do a sync. After that, the folder will no longer be processed.
-------
STEPS TO TEST:
1. Right-click on empty folder in ~/ and select "Synchronize on Ubuntu One"
2. Copy a lot files (say, 1 GB worth of music) to the folder
3. Open a terminal session and run:
u1sdtool --list-folders
4. Copy the ID of the folder selected to sync with Ubuntu One in step 1
5. In a terminal session run:
u1sdtool --unsubscribe-
6. Wait a minute and then run:
u1sdtool --list-folders
Result: u1sdtool --list-folders lists the folder subscribed in step 1 as subscribed=True and all syncdaemon activity on that folder stops
Expected result: u1sdtool --list-folders lists the folder subscribed in step 1 as subscribed=False (or blank) and all syncdaemon activity on that folder has stopped
description: | updated |
summary: |
- Unsubscribing a folder should stop all activity on that folder + Unsubscribing a folder should stop all queued activity on that folder |
tags: |
added: maverick removed: u1-maverick |
I've tried the above commands with no success.
chris@chris- desktop: ~$ u1sdtool --list-folders dbdd-4d7a- b0ed-b8effba376 4e subscribed= path=/home/ chris/Music 543a-4a33- 95ad-1213113b03 f6 subscribed=True path=/home/ chris/Documents 8796-4b96- b566-4955ab2ec7 1d subscribed=True path=/home/ chris/. ubuntuone/ Purchased from Ubuntu One desktop: ~$ u1sdtool -q syncdaemon stopped. desktop: ~$ u1sdtool --start desktop: ~$ u1sdtool --unsubscribe- folder= a36a54ee- dbdd-4d7a- b0ed-b8effba376 4e desktop: ~$ u1sdtool -c desktop: ~$ u1sdtool --status
Folder list:
id=a36a54ee-
id=03a5f837-
id=fc4c7fa5-
chris@chris-
ubuntuone-
chris@chris-
chris@chris-
chris@chris-
chris@chris-
State: SERVER_RESCAN
connection: With User With Network
description: doing server rescan
is_connected: True
is_error: False
is_online: False
queues: WORKING_ON_METADATA
chris@chris- desktop: ~$ u1sdtool --list-folders dbdd-4d7a- b0ed-b8effba376 4e subscribed= path=/home/ chris/Music 543a-4a33- 95ad-1213113b03 f6 subscribed=True path=/home/ chris/Documents 8796-4b96- b566-4955ab2ec7 1d subscribed=True path=/home/ chris/. ubuntuone/ Purchased from Ubuntu One desktop: ~$ u1sdtool --status
Folder list:
id=a36a54ee-
id=03a5f837-
id=fc4c7fa5-
chris@chris-
State: QUEUE_MANAGER
connection: With User With Network
description: processing queues
is_connected: True
is_error: False
is_online: True
queues: IDLE
chris@chris- desktop: ~$ u1sdtool --list-folders dbdd-4d7a- b0ed-b8effba376 4e subscribed= path=/home/ chris/Music 543a-4a33- 95ad-1213113b03 f6 subscribed=True path=/home/ chris/Documents 8796-4b96- b566-4955ab2ec7 1d subscribed=True path=/home/ chris/. ubuntuone/ Purchased from Ubuntu One desktop: ~$
Folder list:
id=a36a54ee-
id=03a5f837-
id=fc4c7fa5-
chris@chris-