-
Notifications
You must be signed in to change notification settings - Fork 144
[#396] OneDrive Chunked Upload - Chunk size is not taken into consideration in case of customized input stream #397
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
Conversation
…ure the buffer is filled with data until the chunk size is reached before executing the chunked upload request.
src/main/java/com/microsoft/graph/concurrency/ChunkedUploadProvider.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/graph/concurrency/ChunkedUploadProvider.java
Show resolved
Hide resolved
zengin
left a comment
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.
please re-scope the read variable and confirm whether not checking the empty buffer was intentional and whether my interpretation makes sense.
|
Hi @zengin |
src/main/java/com/microsoft/graph/concurrency/ChunkedUploadProvider.java
Show resolved
Hide resolved
zengin
left a comment
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.
|
@katestoycheva just for curiosity how significant is this? What is this custom input stream? For my scenarios I don't care if a chunk ends up half the requested size but I do care if the chunk ends up 1% of the requested size repeatedly. |
|
@davidmoten, there are more details in the attached issue. I think in @katestoycheva's example, the ratio is 32KB/5MB = 1/160. |
|
@zengin thanks! |
Fixes #396
Changes proposed in this pull request