nexus3-cli
nexus3-cli copied to clipboard
OOM Exception during large file upload
During large file(9+Gb) upload nexus3-cli crashes with OOM exception.
We fixed this in 7ace4b43661a7abb4d392362edb1e7176effe1c1 for downloads. It's the same fix for uploads (should be anyway).
Looking at this again, the same fix is not enough for uploads because of this:
https://github.com/thiagofigueiro/nexus3-cli/blob/9360a84796033b35f498be28cf5af64f8480e018/src/nexuscli/api/repository/upload.py#L25
which loads the entire contents of the file to be uploaded in memory