Skip to content

flush and seek in _download_source_file()#11

Open
RichardBruskiewich wants to merge 1 commit intoxtream1101:masterfrom
RichardBruskiewich:patch-2
Open

flush and seek in _download_source_file()#11
RichardBruskiewich wants to merge 1 commit intoxtream1101:masterfrom
RichardBruskiewich:patch-2

Conversation

@RichardBruskiewich
Copy link
Copy Markdown

@RichardBruskiewich RichardBruskiewich commented Aug 31, 2021

Observed truncation of large files inserted into archive. It seems necessary to flush and seek to the EOF of source_key_io to avoid this, see boto/boto3#1304. As this Boto issue indicates, multipart downloads (with threaded transfers?) make the file tell() position somewhat indeterminate at times. Flushing the file and seeking to the end, appears to repair this problem. Otherwise, TarInfo in _save_bytes_to_tar will be given the wrong size for its files.

Observed truncation of large files inserted into archive. It seems necessary to flush and seek to the EOF of  source_key_io to avoid this, see boto/boto3#1304
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant