CI to automate build of cargo lockfiles on different Alpine releases for git-annex aports https://gitlab.alpinelinux.org/alpine/aports/-/tree/master/community/git-annex
Find a file
Joey Hess 51c696679f
avoid using temp file size when deciding whether to retry failed transfer
When stall detection is enabled, and a transfer is in progress,
it would display a doubled message:

(transfer already in progress, or unable to take transfer lock) (transfer already in progress, or unable to take transfer lock)

That happened because the forward retry decider had a start size of 0,
and an end size of whatever amount of the object the other process had
downloaded. So it incorrectly thought that the transferrer process had
made progress, when it had in fact immediately given up with that
message.

Instead, use the reported value from the progress meter. If a remote
does not report progress, this will mean it doesn't forward retry, in a
situation where it used to. But most remotes do report progress, and any
remote that does not can be fixed to, by using watchFileSize when
downloading. Also, some remotes might preallocate the temp file (eg
bittorrent), so relying on statting its size at this level to get
progress is dubious.

The same change was made to Annex/Transfer.hs, although only
Annex/TransferrerPool.hs needed to be changed to avoid the duplicate
message.

(An alternate fix would have been to start the retry decider with the
size of the object file before downloading begins, rather than 0.)

Sponsored-by: Brett Eisenberg on Patreon
2021-06-25 12:04:23 -04:00
Annex avoid using temp file size when deciding whether to retry failed transfer 2021-06-25 12:04:23 -04:00
Assistant
Backend
Build
CmdLine
Command push synced/master before synced/git-annex 2021-06-21 12:32:21 -04:00
Config
Database verify associated files when checking numcopies 2021-06-15 11:14:52 -04:00
debian
doc Merge branch 'master' of ssh://git-annex.branchable.com 2021-06-23 17:31:09 -04:00
Git
Limit
Logs Future proof activity log parsing 2021-06-14 14:18:19 -04:00
Messages avoid using temp file size when deciding whether to retry failed transfer 2021-06-25 12:04:23 -04:00
P2P
Remote
RemoteDaemon
standalone
static
templates
Test
Types Added annex.freezecontent-command and annex.thawcontent-command configs 2021-06-21 14:40:52 -04:00
Upgrade
Utility
.ghci
.gitattributes
.gitignore
.mailmap
Annex.hs
Assistant.hs
Backend.hs
bash-completion.bash
Benchmark.hs
BuildFlags.hs
BuildInfo.hs
CHANGELOG Added annex.freezecontent-command and annex.thawcontent-command configs 2021-06-21 14:40:52 -04:00
CmdLine.hs
Command.hs
Common.hs
Config.hs
COPYRIGHT
Creds.hs
Crypto.hs
git-annex.cabal releasing package git-annex version 8.20210621 2021-06-21 12:17:46 -04:00
git-annex.hs
git-union-merge.hs
Git.hs
Key.hs
Limit.hs
Logs.hs
Makefile
Messages.hs clear progress bar before displaying messages 2021-06-15 20:51:40 -04:00
NEWS
README
Remote.hs
Setup.hs
stack.yaml
Test.hs Added annex.freezecontent-command and annex.thawcontent-command configs 2021-06-21 14:40:52 -04:00
Types.hs
Upgrade.hs

git-annex allows managing files with git, without checking the file
contents into git. While that may seem paradoxical, it is useful when
dealing with files larger than git can currently easily handle, whether due
to limitations in memory, checksumming time, or disk space.

For documentation, see doc/ or <https://git-annex.branchable.com/>