Skip to content

Commit a9aae1f

Browse files
benoitm76troydai
authored andcommitted
Fix issue of upload file with size between 195GB and 200GB (#5881)
1 parent e4339a7 commit a9aae1f

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

src/command_modules/azure-cli-storage/HISTORY.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
Release History
44
===============
55

6+
2.0.30
7+
++++++
8+
* Fix issue of upload file with size between 195GB and 200GB
9+
10+
2.0.29
11+
++++++
12+
* Minor fixes.
13+
614
2.0.28
715
++++++
816
* Fix problems with append blob uploads ignoring condition parameters.

src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/operations/blob.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,8 @@ def upload_append_blob():
235235
return client.append_blob_from_path(**append_blob_args)
236236

237237
def upload_block_blob():
238-
# increase the block size to 100MB when the file is larger than 200GB
239-
if os.path.isfile(file_path) and os.stat(file_path).st_size > 200 * 1024 * 1024 * 1024:
238+
# increase the block size to 100MB when the block list will contain more than 50,000 blocks
239+
if os.path.isfile(file_path) and os.stat(file_path).st_size > 50000 * 4 * 1024 * 1024:
240240
client.MAX_BLOCK_SIZE = 100 * 1024 * 1024
241241
client.MAX_SINGLE_PUT_SIZE = 256 * 1024 * 1024
242242

src/command_modules/azure-cli-storage/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
logger.warn("Wheel is not available, disabling bdist_wheel hook")
1515
cmdclass = {}
1616

17-
VERSION = "2.0.28"
17+
VERSION = "2.0.30"
1818
CLASSIFIERS = [
1919
'Development Status :: 5 - Production/Stable',
2020
'Intended Audience :: Developers',

0 commit comments

Comments
 (0)