We stumbled upon a tricky bug where no matter what, the ZIP produced by zipline was corrupt. Tracking it down was quite difficult.
It seems that the download of one of the S3 files failed here:
https://github.com/fringd/zipline/blob/master/lib/zipline/zip_generator.rb#L96
file.download { |chunk| writer_for_file << chunk }
S3 Storage (46.4ms) Downloaded file from key: 123
Traceback (most recent call last):]
Aws::S3::Errors::NotFound ()
Possible solutions:
- Aborting the download and raise the error properly with debug information. I'm not sure if this is possible as it's a stream.
- Write an empty file or with a note of the error. At least the other files would be properly delivered this way. I do agree this isn't ideal as it fails silently. An ignore errors flag from the user could make them aware.
We stumbled upon a tricky bug where no matter what, the ZIP produced by zipline was corrupt. Tracking it down was quite difficult.
It seems that the download of one of the S3 files failed here:
https://github.com/fringd/zipline/blob/master/lib/zipline/zip_generator.rb#L96
Possible solutions: