-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add error when chunkSize is greater than the strict memory limit of t…
…he CacheLimiter. (#2228) Scenario: export AZCOPY_BUFFER_GB=5 # Copy a single 5GB file to an Azure Blob Storage Container with a block size of 4000MB ./acopy [...] --block-size-mb=4000 [...] Since the chunk size in that case is greater than the strict memory limit (75% of 5GB) this would end up in a deadlock: CacheLimiter.TryAdd would loop forever, waiting for memory to be freed (which it never will). This patch tries to remedy that by making it an error if a chunk is greater than the strict memory limit of the associated CacheLimiter.
- Loading branch information
1 parent
691f114
commit 9bc28d3
Showing
2 changed files
with
26 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters