Repository navigation
Conversation
Before this change, dropbox would read the same bytes twice (exceeding the file size and causing an error) if the total size was known and less than or equal to the chunkSize (i.e. small enough to complete in one chunk). This change fixes the issue.
|
How do you trigger this problem? This was my attempt But that didn't work. I tried uploading small files with batches but that didn't work either. The fact that no-one has reported it before makes me think it isn't easy to trigger! |
We are hitting it on the bisync tests because of this bit of code, which is a workaround for Dropbox's inability to set modtime on an existing object without re-uploading: rclone/cmd/bisync/bisync_test.go Lines 1067 to 1082 in a67688d Here's an example that will trigger it with the updated tests: Result: Note that |
|
Ugh wait... I think the bug is on the test, not in Dropbox. Hold that thought... 🤦♂️ |
This change officially adds bisync to the nightly integration tests for all backends. This will be part of giving us the confidence to take bisync out of beta. A number of fixes have been added to account for features which can differ on different backends -- for example, hash types / modtime support, empty directories, unicode normalization, and unimportant differences in log output. We will likely find that more of these are needed once we start running these with the full set of remotes. Additionally, bisync's extremely sensitive tests revealed a few bugs in other backends that weren't previously covered by other tests. Fixes for those issues have been submitted on the following separate PRs (and bisync test failures will be expected until they are merged): - rclone#7670 memory: fix deadlock in operations.Purge - rclone#7688 memory: fix incorrect list entries when rooted at subdirectory - rclone#7690 memory: fix dst mutating src after server-side copy - rclone#7692 dropbox: fix chunked uploads when size <= chunkSize Relatedly, workarounds have been put in place for the following backend limitations that are unsolvable for the time being: - rclone#3262 drive is sometimes aware of trashed files/folders when it shouldn't be - rclone#6199 dropbox can't handle emojis and certain other characters - rclone#4590 onedrive API has longstanding bug for conflictBehavior=replace in server-side copy/move
Ok I fixed the test on #7693. The issue was that I do think there may still be a small bug in with the numerator exceeding the denominator. But I'm not sure if that is actually causing any harm? So perhaps this should just be closed. |
If you have the
Whew!
The I'll close this then (with some relief that Dropbox uploads are in fact fine!). |
This change officially adds bisync to the nightly integration tests for all backends. This will be part of giving us the confidence to take bisync out of beta. A number of fixes have been added to account for features which can differ on different backends -- for example, hash types / modtime support, empty directories, unicode normalization, and unimportant differences in log output. We will likely find that more of these are needed once we start running these with the full set of remotes. Additionally, bisync's extremely sensitive tests revealed a few bugs in other backends that weren't previously covered by other tests. Fixes for those issues have been submitted on the following separate PRs (and bisync test failures will be expected until they are merged): - #7670 memory: fix deadlock in operations.Purge - #7688 memory: fix incorrect list entries when rooted at subdirectory - #7690 memory: fix dst mutating src after server-side copy - #7692 dropbox: fix chunked uploads when size <= chunkSize Relatedly, workarounds have been put in place for the following backend limitations that are unsolvable for the time being: - #3262 drive is sometimes aware of trashed files/folders when it shouldn't be - #6199 dropbox can't handle emojis and certain other characters - #4590 onedrive API has longstanding bug for conflictBehavior=replace in server-side copy/move
This change officially adds bisync to the nightly integration tests for all backends. This will be part of giving us the confidence to take bisync out of beta. A number of fixes have been added to account for features which can differ on different backends -- for example, hash types / modtime support, empty directories, unicode normalization, and unimportant differences in log output. We will likely find that more of these are needed once we start running these with the full set of remotes. Additionally, bisync's extremely sensitive tests revealed a few bugs in other backends that weren't previously covered by other tests. Fixes for those issues have been submitted on the following separate PRs (and bisync test failures will be expected until they are merged): - rclone#7670 memory: fix deadlock in operations.Purge - rclone#7688 memory: fix incorrect list entries when rooted at subdirectory - rclone#7690 memory: fix dst mutating src after server-side copy - rclone#7692 dropbox: fix chunked uploads when size <= chunkSize Relatedly, workarounds have been put in place for the following backend limitations that are unsolvable for the time being: - rclone#3262 drive is sometimes aware of trashed files/folders when it shouldn't be - rclone#6199 dropbox can't handle emojis and certain other characters - rclone#4590 onedrive API has longstanding bug for conflictBehavior=replace in server-side copy/move
What is the purpose of this change?
Before this change,
dropboxwould read the same bytes twice (exceeding the file size and causing an error) if the total size was known and less than or equal to thechunkSize(i.e. small enough to complete in one chunk). This change fixes the issue.Was the change discussed in an issue or in the forum before?
No.
Checklist