viewing web-status of unfinished immutable downloads causes exception #1160

Closed
opened 2010-08-09 21:16:52 +00:00 by zooko · 8 comments

The web-status view (visible at <http://$GATEWAY/status>) of immutable downloads shows "not impl yet" in the status column. If you click on that to get an exception which ends with:

          File "/Library/Python/2.6/site-packages/allmydata/web/status.py", line 416, in render_events
            rtt = received - sent
        exceptions.TypeError: unsupported operand type(s) for -: 'NoneType' and 'float'

Attached is an incident report file from such an incident.

The web-status view (visible at `<http://$GATEWAY/status>`) of immutable downloads shows "not impl yet" in the status column. If you click on that to get an exception which ends with: ``` File "/Library/Python/2.6/site-packages/allmydata/web/status.py", line 416, in render_events rtt = received - sent exceptions.TypeError: unsupported operand type(s) for -: 'NoneType' and 'float' ``` Attached is an incident report file from such an incident.
zooko added the
code-network
critical
defect
1.8β
labels 2010-08-09 21:16:52 +00:00
zooko added this to the 1.8.0 milestone 2010-08-09 21:16:52 +00:00
Author

Attachment incident-2010-08-09-140456-fzgnluy.flog.bz2 (25484 bytes) added

**Attachment** incident-2010-08-09-140456-fzgnluy.flog.bz2 (25484 bytes) added

Attachment patch-1-hush-logs.3.diff (909 bytes) added

don't log storage requests that arrive after the download is finished

**Attachment** patch-1-hush-logs.3.diff (909 bytes) added don't log storage requests that arrive after the download is finished

Attachment patch-3-tolerate-unretired-DYHB.diff (3770 bytes) added

real fix for #1160: tolerate DYHB requests that haven't retired, plus tests

**Attachment** patch-3-tolerate-unretired-DYHB.diff (3770 bytes) added real fix for #1160: tolerate DYHB requests that haven't retired, plus tests
davidsarah commented 2010-08-09 22:37:38 +00:00
Owner

Accepting for review.

Accepting for review.

Attachment patch-2-fewer-downloadstatus.diff (6419 bytes) added

stop creating download-status objects for non-downloaded filenodes (v2)

**Attachment** patch-2-fewer-downloadstatus.diff (6419 bytes) added stop creating download-status objects for non-downloaded filenodes (v2)
davidsarah commented 2010-08-09 23:12:01 +00:00
Owner

Looks good, ok to apply with v2 of second patch.

Looks good, ok to apply with v2 of second patch.
Brian Warner <warner@lothar.com> commented 2010-08-09 23:15:45 +00:00
Owner

In changeset:dc1afc81bbfe95de:

web download-status: tolerate DYHBs that haven't retired yet. Fixes #1160.

Also add a better unit test for it.
In changeset:dc1afc81bbfe95de: ``` web download-status: tolerate DYHBs that haven't retired yet. Fixes #1160. Also add a better unit test for it. ```
tahoe-lafs added the
fixed
label 2010-08-09 23:15:45 +00:00
Brian Warner <warner@lothar.com> commented 2010-08-12 05:58:27 +00:00
Owner

In [4693/ticket68-multi-introducer]:

web download-status: tolerate DYHBs that haven't retired yet. Fixes #1160.

Also add a better unit test for it.
In [4693/ticket68-multi-introducer]: ``` web download-status: tolerate DYHBs that haven't retired yet. Fixes #1160. Also add a better unit test for it. ```
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Reference: tahoe-lafs/trac-2024-07-25#1160
No description provided.