-
Notifications
You must be signed in to change notification settings - Fork 514
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes re-downloading data corrupt for the same url #514
Conversation
Please add a test. |
This is a really great fix! Would you mind adding a test as @bolsinga suggested? |
844712c
to
5d58a20
Compare
@bolsinga @garrettmoon Please review again. :) |
Thanks for the test! |
Can you add an entry to CHANGELOG.md for this? |
🚫 CI failed with log |
Mind rebasing against master? I think I fixed a flakey test. |
🚫 CI failed with log |
@garrettmoon Tests failed like below frequently, I think we may need to add a command like |
Sorry for the long delay @zhongwuzw. The CI tests should now be fixed. If you could rebase again, we can do a final review of your change. |
@jparise Done. |
00fe21b
to
60d2405
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking really good, @zhongwuzw! Just a few more bits of feedback.
Done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! We can merge this once the other folks who have left comments (@garrettmoon, @bolsinga) give it a 👍, too.
This looks great, thank you so much for the fix! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
accepted; good fix; opens up some good questions on how to test the framework better going forward!
Fixes #489 , we use
cacheKey
to get thetask
, actually it would mix updata
if previous task cancelled but download delegate still not finished , and next task with the same url started at the same time. This is the race condition for the same url downloading, we can keep the weak reference totask
and get it in session delegate.