Non integer blockSize causing byte(s) to be omitted from uploaded blobs. #31763
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Attention
Workflow: This issue is responsible by Azure service team.
Storage
Storage Service (Queues, Blobs, Files)
Describe the bug
A non-integer
blockSize
inBlockBlobClient.uploadData
causes bytes to be omitted (on chunk boundaries?) in the uploaded file. I suspect this is a rounding error!To Reproduce
Steps to reproduce the behavior:
cat /dev/random | head -c 1637734 > test-file
blockSize = file size / 20
which is81886.7
)Expected behavior
To not omit the byte.
Screenshots
N/A
Additional context
I appreciate that this is a case of GIGO - but believe there should be a warming (at least) for poorly-conditioned blob block size / this should not result in missing byte.
The text was updated successfully, but these errors were encountered: