Files occasionally being truncated when downloading #2055
Labels
api: storage
Issues related to the googleapis/nodejs-storage API.
priority: p1
Important issue which blocks shipping the next release. Will be fixed prior to next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Issue
We're seeing occasionally that files are being truncated when they are downloaded without the storage library throwing an error.
What we're trying to do is concurrently pull down a set of files from a location to then process them. We also exclude any 0 byte files when we download. We create multiple pubsub subscriptions when doing this as the node version doesn't support concurrent messaging in pubsub in the way we need it to.
We're seeing this happening around 5% of the time we download files.
Environment details
@google-cloud/storage
version: 6.2.0Steps to reproduce
Difficult to explain so including a snippet of what we're doing here. We're using storage alongside the pubsub library so including the code for that, as we have a suspicion that might be causing some of the issues.
The text was updated successfully, but these errors were encountered: