Retry transfers to exporttree=yes remotes same as for other remotes

The comment about noRetry is not well-justified, because transfers to many
remotes cannot be resumed, but retries are still allowed for those.
This commit is contained in:
Joey Hess 2020-09-04 13:23:33 -04:00
parent 1a42b2c5a3
commit 46eb48d7c0
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
4 changed files with 12 additions and 3 deletions

View file

@ -27,6 +27,7 @@ git-annex (8.20200815) UNRELEASED; urgency=medium
* Limit retrying of failed transfers when forward progress is being made
to 5, to avoid some unusual edge cases where too much retrying could
result in far more data transfer than makes sense.
* Retry transfers to exporttree=yes remotes same as for other remotes.
-- Joey Hess <id@joeyh.name> Fri, 14 Aug 2020 14:57:45 -0400

View file

@ -281,9 +281,7 @@ performExport r db ek af contentsha loc allfilledvar = do
sent <- tryNonAsync $ case ek of
AnnexKey k -> ifM (inAnnex k)
( notifyTransfer Upload af $
-- Using noRetry here because interrupted
-- exports cannot be resumed.
upload (uuid r) k af noRetry $ \pm -> do
upload (uuid r) k af stdRetry $ \pm -> do
let rollback = void $
performUnexport r db [ek] loc
sendAnnex k rollback $ \f ->

View file

@ -4,3 +4,5 @@ If git-annex already does that, please pardon my noise and close this TODO.
[[!meta author=yoh]]
[[!tag projects/datalad]]
[[fixed|done]] --[[Joey]]

View file

@ -0,0 +1,8 @@
[[!comment format=mdwn
username="joey"
subject="""comment 2"""
date="2020-09-04T17:00:11Z"
content="""
What about the other side of export, import? Looks to me that does not
retry either.
"""]]