#2924 closed defect (somebody else's problem)

Subdirectories remain in magic-folder upload queue indefinitely

Reported by: cypher Owned by: daira
Priority: normal Milestone: undecided
Component: code-frontend-magic-folder Version: 1.12.1
Keywords: magic-folder Cc:
Launchpad Bug:

Description

Subdirectories created inside of a magic-folder appear to remain in the magic-folder status upload queue indefinitely. Example:

dev ~ % tahoe magic-folder status -n TestFolder
Magic-folder status for 'TestFolder':
Local files:
  file.txt (5.21 MB): good, version=0, created 6 minutes ago
  subdir@_ (0 B): good, version=0, created 5 minutes ago
  subdir@_other_file.txt (965.85 kB): good, version=0, created 2 minutes ago

Remote files:
  admin's remote:
    file.txt (5.21 MB): good, version=0, created 6 minutes ago
    subdir@_ (0 B): good, version=0, created 5 minutes ago
    subdir@_other_file.txt (965.85 kB): good, version=0, created 2 minutes ago

Uploads:
  subdir/: 0.0% done

In this case, the subdir/: 0.0% done upload operation will persist in between client restarts (i.e., be re-added to the queue on startup but remain at "0.0% done" forever), regardless of the contents of that subdirectory and/or the ongoing upload/download progress of any of the files contained inside it.

As meejah has suggested, this may have something to do with the "flattening" behavior of magic-folder (which does not use standard/nested tahoe directories but instead lists all files within a magic-folder at the top-level of a mutable object using "@_" as a path separator). In any case, the correct behavior should probably either clear/remove this upload operation once "subdir" has been successfully created in the remote magic-folder, or keep the upload operation in the list for some amount of time but display it as being 100% done.

Change History (5)

comment:1 Changed at 2018-05-15T04:40:29Z by meejah

Does this *always* happen if you add a subdir? I tried a couple quick things but didn't ever see any of my subdirs in the uploads list.

comment:2 Changed at 2018-05-15T04:41:57Z by meejah

Oh, there we go: this only happens if you:

  • add a subdirectory
  • restart the client

comment:3 Changed at 2018-05-15T15:12:54Z by meejah

Hmm, I also see that at least my subdir "uploads" entries go away after a while (possibly when magic-folder decides to do a "full scan" which is every 10 minutes).

comment:4 Changed at 2019-01-29T15:57:12Z by cypher

  • Component changed from unknown to code-frontend-magic-folder
  • Owner set to daira

comment:5 Changed at 2020-06-30T13:48:54Z by exarkun

  • Resolution set to somebody else's problem
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.