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
zooko commented 2010-08-12 20:39:56 +00:00
Owner

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`.
tahoe-lafs added the
code-frontend-web
major
defect
1.8β
labels 2010-08-12 20:39:56 +00:00
tahoe-lafs added this to the undecided milestone 2010-08-12 20:39:56 +00:00
zooko commented 2010-08-14 07:05:15 +00:00
Author
Owner

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.
tahoe-lafs modified the milestone from undecided to 1.8.0 2010-08-14 07:05:15 +00:00
warner commented 2010-08-14 18:36:22 +00:00
Author
Owner

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
zooko commented 2010-10-22 13:41:23 +00:00
Author
Owner

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.
tahoe-lafs modified the milestone from 1.9.0 to 1.8.1 2010-10-22 13:41:23 +00:00
tahoe-lafs 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
Author
Owner

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

warner: can your patch mentioned in [comment:121297](/tahoe-lafs/trac-2024-07-25/issues/1171#issuecomment-121297) 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 commented 2012-09-04 16:41:28 +00:00
Author
Owner

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

I'll investigate.. this one might alredy be fixed now.
warner commented 2012-09-04 23:59:40 +00:00
Author
Owner

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.
tahoe-lafs added the
fixed
label 2012-09-04 23:59:40 +00:00
warner closed this issue 2012-09-04 23:59:40 +00:00
zooko commented 2012-09-05 02:14:27 +00:00
Author
Owner

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

I briefly looked at the two links into the source code that Brian posted in [comment:121305](/tahoe-lafs/trac-2024-07-25/issues/1171#issuecomment-121305) and it looks good to me.
davidsarah commented 2012-09-05 03:31:57 +00:00
Author
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
davidsarah reopened this issue 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 project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

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