I want results to stick around until I explicitly tell them to go away (not: "unknown/expired handle") #577
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
2 Participants
Notifications
Due Date
No due date set.
Reference: tahoe-lafs/trac-2024-07-25#577
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?
I ran a deep-verify operation, and when I hit "reload" to find out how it was going, I got:
Fortunately in this case the operation I was performing was side-effect free, so this only costs my time. But what if it had been a side-effecting operation such as a deep repair? Then it would be impossible for me to find out what happened.
I know that I originally agreed to this time-out mechanism, but now I'm dissatisfied with it. What about adding a button to the form which says "Free up these results" and then storing the results until that button is pressed or the node is restarted?
Making the Subject of this ticket a bit more specific -- I'm about to open another ticket with a different aspect of this problem.
unknown/expired handleto I want results to stick around until I explicitly tell them to go away (not: "unknown/expired handle"PAs an interim measure -- even if we don't go to a "keep this until I tell you to let go of it" design -- could we please set the timeouts to approximately one hundred times as long as they currently are? Maybe 100 hours for uncollected results and 1000 minutes for collected results?
I want results to stick around until I explicitly tell them to go away (not: "unknown/expired handle"Pto I want results to stick around until I explicitly tell them to go away (not: "unknown/expired handle")#949 was a duplicate:
Increasing the timeout would be very easy.
I can take care of this.
I'm attaching four patches that fix this.
twisted.internet.task.Clock
forcallLater
calls instead of the reactor, if such a clock is provided. It also changes some code in other classes to relay the provided clock to the OphandleTable. To effectively test this fix, I needed a deterministic way to simulate the passage of large periods of time (since it is very probably unacceptable to have the test suite take 100 hours to run), and I gather that usingtwisted.internet.task.Clock
is the way to do that. That said, I'm by no means a twisted expert, so if there's an easier way of doing that that I missed, please let me know.I'm happy with where these are, so I'll add the review-needed keyword.
Attachment 577testmodifications.darcspatch.txt (8581 bytes) added
100 hours and 1000 minutes require some mental arithmetic to grasp how long they are. How about 4 days and 1 day respectively (96 hours and 1440 minutes)?
In webapi.txt: "operations which have finished" -> "operations that have finished".
Nitpick: single blank line between test methods.
Replying to davidsarah:
That's much nicer to think about (and read). I updated my patches to use those.
Fixed.
Fixed.
Thanks for the feedback.
Attachment 577behavior.darcspatch.txt (2561 bytes) added
Attachment 577docs.darcspatch.txt (3265 bytes) added
Attachment 577tests.darcspatch.txt (6811 bytes) added
What's the status of this ticket? I think it is
review-needed
and that David-Sarah or someone should look at the latest versions of Kevan's patches.Reviewed and fixed in changeset:e9b59a4949d3237a, changeset:09177a6e19af6e8f, changeset:bcdc78bd446f28e2, changeset:81ad52d6ebf05f4f.