Repository navigation
Classify chunked items correctly. Issue #5850 - #5852
Conversation
There was a problem hiding this comment.
Because of that, after dynamic chunk has been readjusted to 100MB, this file has been classified as V1, being 50MB in size. With _initialChunkSize being 10MB, it is classified as to be chunked and having high dynamic chunk, being send in one shot.
There was a problem hiding this comment.
yes, that's correct. Thanks for spotting and fixing this.
ogoffart
left a comment
There was a problem hiding this comment.
Thanks for fixing this. Please just fix or remove the missleading comment before pushing.
There was a problem hiding this comment.
this comment is wrong. This has nothing to do with the classification, quite the contrary. It is the actual size that will be used by the chunking-ng algorithm
There was a problem hiding this comment.
Hmm, maybe I need to rewrite this. The intiention was to say that this is the dynamic chunk size of the item, which has been classified to be chunked.
There was a problem hiding this comment.
yes, that's correct. Thanks for spotting and fixing this.
There was a problem hiding this comment.
If you anyway change the commit, remove this one too :)
|
Done |
ckamm
left a comment
There was a problem hiding this comment.
With this change we'll start using chunked upload via PropagateUploadFileNG for files that will only have a single chunk. I assume that was tested and is safe.
|
|
||
| /** The initial un-adjusted chunk size in bytes for chunked uploads | ||
| /** The initial un-adjusted chunk size in bytes for chunked uploads, both | ||
| * for old and new chunking algorithm, which classifies the item to be chunked |
There was a problem hiding this comment.
When you say "which classifies the item to be chunked" (also below) that's confusing because it's ambiguous. "which is used to decide whether an item should be chunked" would be clearer.
|
@guruz why the jenkins test is not passing (it is also not for master), can we merge this PR? |
|
@mrow4a the jenkins error seems to be unrelated to this change: I'd say we can merge this change. yes |

This should solve #5850.
Please note: we cannot set chunk size of PUT V1 to _chunkSize which is dynamic because PUT V1 will not adjust dynamic chunk size. If we want it, we need to make code adjusting dynamic chunk size both for V1 and NG.