Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gcs_upload sometimes hangs for a very long time #187

Open
wpdavis opened this issue Sep 30, 2023 · 1 comment
Open

gcs_upload sometimes hangs for a very long time #187

wpdavis opened this issue Sep 30, 2023 · 1 comment

Comments

@wpdavis
Copy link

wpdavis commented Sep 30, 2023

We are using the gcs_upload function to upload CSVs to a GCS bucket. The sizes vary, but they are rarely more than 20MB. They are sometimes overwriting each other.

We have noticed the call hangs for a very long time — say, 5-10 minutes — before completing. Sometimes it just fails entirely. We aren't able to discern any rhyme or reason to it — it does not seem correlated with file size, for example, or whether it is overwriting a pre-existing file. We have tried both upload_type = simple and upload_type = resumable, with no success.

Because it happens infrequently, it's been impossible to create repro steps. But are there things we could be logging that could help?

Below is our current call to gcs_upload.

googleCloudStorageR::gcs_upload(
    data,
    object_function = function(input, output) readr::write_csv(x = input, file = output), 
     type = "text/csv",
    name = path,
    bucket = bucket,
    predefinedAcl = "bucketLevel"
)
@mmoisse
Copy link

mmoisse commented Oct 25, 2023

I experience similar issues. For me it was mainly linked with smaller files and I resolved it by forcing googleCloudStorageR to use the resumable upload for all files options(googleCloudStorageR.upload_limit = 0L)

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

No branches or pull requests

2 participants