Immutable uploads time out if no writes are done for 30 minutes #1162

Merged
itamarst merged 12 commits from 3807.immutable-upload-timeout into master 2021-11-23 16:01:26 +00:00
itamarst commented 2021-11-18 20:44:10 +00:00 (Migrated from github.com)

Mostly useful for HTTP uploads.

Fixes https://tahoe-lafs.org/trac/tahoe-lafs/ticket/3807

Mostly useful for HTTP uploads. Fixes https://tahoe-lafs.org/trac/tahoe-lafs/ticket/3807
coveralls commented 2021-11-18 21:17:29 +00:00 (Migrated from github.com)

Coverage Status

Coverage decreased (-0.001%) to 95.663% when pulling c341a86abd on 3807.immutable-upload-timeout into d3c6f58a8d on master.

[![Coverage Status](https://coveralls.io/builds/44484429/badge)](https://coveralls.io/builds/44484429) Coverage decreased (-0.001%) to 95.663% when pulling **c341a86abdd4aa2b4244d0adeff53d5893be9a03 on 3807.immutable-upload-timeout** into **d3c6f58a8ded7db3324ef97c47f5c1921c3d58b7 on master**.
meejah (Migrated from github.com) approved these changes 2021-11-22 16:44:42 +00:00
meejah (Migrated from github.com) left a comment

LGTM, some inline comments

LGTM, some inline comments
@ -15,3 +15,3 @@
from typing import Dict
import os, re, time
import os, re
meejah (Migrated from github.com) commented 2021-11-22 16:41:21 +00:00

\O/

\O/
meejah (Migrated from github.com) commented 2021-11-22 16:42:05 +00:00

probably don't need the list()?

probably don't need the `list()`?
meejah (Migrated from github.com) commented 2021-11-22 16:43:59 +00:00

comment doesn't match code

comment doesn't match code
itamarst (Migrated from github.com) reviewed 2021-11-23 14:59:38 +00:00
itamarst (Migrated from github.com) commented 2021-11-23 14:59:38 +00:00

You do, when it gets disconnected it removes itself from _bucket_writers and then you're iterating over it as it gets mutated.

You do, when it gets disconnected it removes itself from `_bucket_writers` and then you're iterating over it as it gets mutated.
itamarst (Migrated from github.com) reviewed 2021-11-23 15:01:15 +00:00
itamarst (Migrated from github.com) commented 2021-11-23 15:01:15 +00:00

Fixed.

Fixed.
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
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/tahoe-lafs#1162
No description provided.