active immutable downloads are shown on Recent Operations instead of Active Operations #1172
Labels
No Label
0.2.0
0.3.0
0.4.0
0.5.0
0.5.1
0.6.0
0.6.1
0.7.0
0.8.0
0.9.0
1.0.0
1.1.0
1.10.0
1.10.1
1.10.2
1.10a2
1.11.0
1.12.0
1.12.1
1.13.0
1.14.0
1.15.0
1.15.1
1.2.0
1.3.0
1.4.1
1.5.0
1.6.0
1.6.1
1.7.0
1.7.1
1.7β
1.8.0
1.8.1
1.8.2
1.8.3
1.8β
1.9.0
1.9.0-s3branch
1.9.0a1
1.9.0a2
1.9.0b1
1.9.1
1.9.2
1.9.2a1
LeastAuthority.com automation
blocker
cannot reproduce
cloud-branch
code
code-dirnodes
code-encoding
code-frontend
code-frontend-cli
code-frontend-ftp-sftp
code-frontend-magic-folder
code-frontend-web
code-mutable
code-network
code-nodeadmin
code-peerselection
code-storage
contrib
critical
defect
dev-infrastructure
documentation
duplicate
enhancement
fixed
invalid
major
minor
n/a
normal
operational
packaging
somebody else's problem
supercritical
task
trivial
unknown
was already fixed
website
wontfix
worksforme
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Reference: tahoe-lafs/trac-2024-07-25#1172
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
An immutable download is still in-progress, but it appears in Recent Operations instead of Active Operations. By the way, the source code responsible for this may be close to the source code responsible for #1079 (upload of file into dir doesn't appear on Recent Uploads and Downloads).
Attachment Tahoe-LAFS - Current Uploads_Downloads.html (2402 bytes) added
Should we try to fix this for v1.8.0? I would lean toward "yes".
The fix for this will go into source:src/allmydata/immutable/downloader/status.py#L244 ish (
DownloadStatus.get_active
). It currently is a stub that always returnsFalse
. That should be replaced by something which, I dunno, probably does the same "look for read_events that have a non-Nonefinishtime
" check thatget_progress
uses, so "active" means "has outstandingread()
calls".Attachment downloader-status-1172.dpatch (2867 bytes) added
The attached patch implements what Brian proposed in [comment:79670](/tahoe-lafs/trac-2024-07-25/issues/1172#issuecomment-79670) and add an appropriate test.
I'm ok with this patch. Be aware that if we land the #1170 patches (specifically 1170-p2.diff) then this one will need to be rewritten, since the download-status data structure changed quite a bit (each event is now an object with attributes, rather than a tuple).
François, could you rewrite your patch to be based on top of Brian's #1170 patches? :-)
Okay I have applied two out of three of Brian's patches, namely changeset:c89a464510394089 and changeset:00e9e4e6760021a1. changeset:00e9e4e6760021a1 is the one that was formerly known as 1170-p2.diff.
Replying to warner:
Well, the download-status data structure are actually changed by 1170-p3.diff which is not yet commited in trunk. Anyway, here's an up to date version of the patch.
Attachment downloader-status-1172-2.dpatch (4646 bytes) added
In changeset:485bfc0fd67ef421:
Oh look this failed unit tests:
http://tahoe-lafs.org/buildbot/builders/Kyle%20OpenBSD-4.6%20amd64/builds/390/steps/test-coverage/logs/stdio
Oh this was my mistake, I should have committed attachment:downloader-status-1172.dpatch, not downloader-status-1172-2.dpatch . I'll commit a new patch that undoes the effect of downloader-status-1172-2.dpatch and then another patch that has the same effect as attachment:downloader-status-1172.dpatch. By the way, one thing you can do to make it harder for me to make such mistakes is to use the
--ask-deps
option todarcs record
and specify that a patch depends on another patch. Then when I try to commit your patch, darcs will tell me that I can't do so until I commit that other patch, which will make me realize that I'm trying to commit the wrong patch.Thanks!
In changeset:63fb687a440e99a9: