Skip to content

Commit ac0840a

Browse files
nithinbNithin Bodanapu
andauthored
Change single file upload size to 5000 MiB (#503)
* As per the documentation on Azure: https://learn.microsoft.com/en-us/rest/api/storageservices/understanding-block-blobs--append-blobs--and-page-blobs#about-block-blobs, the maximum single blob size allowed is 5000 MiB and not 5 GiB. Due to this if a file of size above 4.9 GiB fails with the error: httpx.HTTPStatusError: Client error '413 Payload Too Large' for url '<upload_url_for_file>' * Changes to make a release for the extractor-utils --------- Co-authored-by: Nithin Bodanapu <nithin.bodanapu@cognite.com>
1 parent 18c597b commit ac0840a

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ Changes are grouped as follows
1212
- `Fixed` for any bug fixes.
1313
- `Security` in case of vulnerabilities.
1414

15+
## 7.11.5
16+
17+
### Fixed
18+
* Updated max single-chunk file size to 5000 MiB from 5 GiB. The earlier limit used to cause issues with Azure Blob Storage.
19+
1520

1621
## 7.11.4
1722

cognite/extractorutils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
Cognite extractor utils is a Python package that simplifies the development of new extractors.
1717
"""
1818

19-
__version__ = "7.11.4"
19+
__version__ = "7.11.5"
2020
from .base import Extractor
2121

2222
__all__ = ["Extractor"]

cognite/extractorutils/uploader/files.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,11 @@
5959
_QUEUES: int = 0
6060
_QUEUES_LOCK: threading.RLock = threading.RLock()
6161

62-
# 5 GiB
63-
_MAX_SINGLE_CHUNK_FILE_SIZE = 5 * 1024 * 1024 * 1024
62+
# 5000 MiB
63+
_MAX_SINGLE_CHUNK_FILE_SIZE = 5 * 1000 * 1024 * 1024
64+
6465
# 4000 MiB
65-
_MAX_FILE_CHUNK_SIZE = 4 * 1024 * 1024 * 1000
66+
_MAX_FILE_CHUNK_SIZE = 4 * 1000 * 1024 * 1024
6667

6768
_CDF_ALPHA_VERSION_HEADER = {"cdf-version": "alpha"}
6869

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "cognite-extractor-utils"
3-
version = "7.11.4"
3+
version = "7.11.5"
44
description = "Utilities for easier development of extractors for CDF"
55
authors = [
66
{name = "Mathias Lohne", email = "mathias.lohne@cognite.com"}

0 commit comments

Comments
 (0)