This repository has been archived by the owner on Dec 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 773
dfget download file success with incorrect md5 #1415
Comments
which version or commit in you machine? |
I use the latest master code to compile and run. |
maybe we should use an independent go routine to reset the piece buffer in order to make sure that the piece is really useless. |
We can just reset the piece buffer after io.Copy returns. See #1418 |
fixed by #1411 , closed |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Ⅰ. Issue Description
I use master code. Currently dfget may download file sucessfully, but the md5 value is incorrect.
retry the same file many times, md5 values are different!!
The file size is 123MB.
I change the default writer buffer size to 4MB,the problem goes away!!
https://github.com/dragonflyoss/Dragonfly/blob/master/pkg/pool/writer_pool.go#L28
4M is the default piece size for under 200M file. I just don't know the relation between them.
Ⅱ. Describe what happened
Ⅲ. Describe what you expected to happen
Ⅳ. How to reproduce it (as minimally and precisely as possible)
Ⅴ. Anything else we need to know?
Ⅵ. Environment:
uname -a
):The text was updated successfully, but these errors were encountered: