add regression test for shnums: "e,r,r,o,r" #1171

Open
opened 2010-08-12 20:39:56 +00:00 by zooko · 8 comments

In this download status page that I attached to #1170 -- http://tahoe-lafs.org/trac/tahoe-lafs/attachment/ticket/1170/down-1.html one of the entries in the "shnums" column (the one for serverid 62nlabgf), says e,r,r,o,r.

In this download status page that I attached to #1170 -- <http://tahoe-lafs.org/trac/tahoe-lafs/attachment/ticket/1170/down-1.html> one of the entries in the "shnums" column (the one for serverid 62nlabgf), says `e,r,r,o,r`.
zooko added the
code-frontend-web
major
defect
1.8β
labels 2010-08-12 20:39:56 +00:00
zooko added this to the undecided milestone 2010-08-12 20:39:56 +00:00
Author

Perhaps we should investigate and make sure that this doesn't cause worse problems, and fix it in 1.8.0 if it is easy to fix or if it causes worse problems.

Perhaps we should investigate and make sure that this doesn't cause worse problems, and fix it in 1.8.0 if it is easy to fix or if it causes worse problems.
zooko modified the milestone from undecided to 1.8.0 2010-08-14 07:05:15 +00:00

I agree with checking that it doesn't cause worse problems, but I have a for-after-1.8.0 patch to rewrite the way that errors are recorded in the DownloadStatus structure that will make this go away.

I agree with checking that it doesn't cause worse problems, but I have a for-after-1.8.0 patch to rewrite the way that errors are recorded in the `DownloadStatus` structure that will make this go away.
tahoe-lafs modified the milestone from 1.8.0 to 1.9.0 2010-08-21 21:56:32 +00:00
Author

This is another bug that was introduced in v1.8.0 and it would be great if we could fix it in v1.8.1, but someone would have to volunteer to do the work quite soon.

This is another bug that was introduced in v1.8.0 and it would be great if we could fix it in v1.8.1, but someone would have to volunteer to do the work quite soon.
zooko modified the milestone from 1.9.0 to 1.8.1 2010-10-22 13:41:23 +00:00
zooko modified the milestone from 1.8.1 to soon 2010-11-02 02:26:35 +00:00
davidsarah commented 2012-06-29 13:06:43 +00:00
Owner

warner: can your patch mentioned in comment:79640 be applied for 1.10 without disruption?

warner: can your patch mentioned in [comment:79640](/tahoe-lafs/trac-2024-07-25/issues/1171#issuecomment-79640) be applied for 1.10 without disruption?
tahoe-lafs modified the milestone from soon to 1.10.0 2012-06-29 13:06:43 +00:00
warner was assigned by tahoe-lafs 2012-06-29 13:06:43 +00:00

I'll investigate.. this one might alredy be fixed now.

I'll investigate.. this one might alredy be fixed now.

It looks like the changes I had in mind have been applied already. Specifically, source:src/allmydata/immutable/downloader/status.py#L42 DYHBEvent has a distinct error() method, and source:src/allmydata/immutable/downloader/finder.py calls exactly one of finished() or error(). So shnums should only ever be a list of share numbers (keys of the dict-of-buckets returned by a successful DYHB call).

So I'm closing this one.

It looks like the changes I had in mind have been applied already. Specifically, source:src/allmydata/immutable/downloader/status.py#L42 `DYHBEvent` has a distinct `error()` method, and source:src/allmydata/immutable/downloader/finder.py calls exactly one of `finished()` or `error()`. So `shnums` should only ever be a list of share numbers (keys of the dict-of-buckets returned by a successful DYHB call). So I'm closing this one.
warner added the
fixed
label 2012-09-04 23:59:40 +00:00
Author

I briefly looked at the two links into the source code that Brian posted in comment:79649 and it looks good to me.

I briefly looked at the two links into the source code that Brian posted in [comment:79649](/tahoe-lafs/trac-2024-07-25/issues/1171#issuecomment-79649) and it looks good to me.
davidsarah commented 2012-09-05 03:31:57 +00:00
Owner

This didn't have a test though. Ideally we should have a regression test.

This didn't have a test though. Ideally we should have a regression test.
tahoe-lafs removed the
fixed
label 2012-09-05 03:31:57 +00:00
tahoe-lafs changed title from shnums: "e,r,r,o,r" to add regression test for shnums: "e,r,r,o,r" 2012-09-05 03:31:57 +00:00
tahoe-lafs added
normal
and removed
major
labels 2012-12-13 17:10:43 +00:00
tahoe-lafs modified the milestone from 1.10.0 to 1.11.0 2012-12-20 16:32:10 +00:00
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#1171
No description provided.