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

Overwrite file take 30 min on a bucket #133

Open
MarkEdmondson1234 opened this issue Nov 18, 2020 · 0 comments
Open

Overwrite file take 30 min on a bucket #133

MarkEdmondson1234 opened this issue Nov 18, 2020 · 0 comments

Comments

@MarkEdmondson1234
Copy link
Collaborator

cran/googleCloudStorageR#1

Hello,

When I overwrite a file on a bucket, or I remove old file and put same file on a bucket on google storage, I have to wait 30 minutes before to see the change, it's look like that google storage keep in memory the old file.

My code to connect on a bucket:

`path_log<-paste("google_auth",auth_json,sep="/")

Sys.setenv("GCS_AUTH_FILE" = path_log)

library(googleCloudStorageR)

gcs_get_bucket(bucket)

Sys.setenv("GCS_DEFAULT_BUCKET" = bucket)

gcs_global_bucket(bucket)

buckets <- gcs_list_buckets(proj)

bucket_info <- gcs_get_bucket(bucket)`

The configuration of the bucket:

image

I use gcs_upload(df_poids, name = "test.csv",predefinedAcl="publicRead") to write file on storage,
and

gcs_get_object(object_name="test.csv",saveToDisk="test.csv",overwrite=T) to read the file.

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

1 participant