GCP存储:上传完成之前是否会显示文件 [英] GCP-Storage: do files appear before upload is complete

查看:78
本文介绍了GCP存储:上传完成之前是否会显示文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当有新文件添加到存储中时,我都希望将文件传输到VM中,问题是我希望仅在上传完成后才能进行传输

I want to transfer files into a VM whenever there is a new file added to storage, the problem is that i want the transfer to be done only when the upload is complete

所以我的问题是:即使上传仍在进行,文件仍会出现吗?这意味着,如果我构建了一个每秒查找新文件的程序,即使上传不完整,它也会将文件从gcs传输到VM还是要在上传完成时(而不是上传时)开始传输?

So my question is : Do files appear even when the upload is still going on ? which means if I build a program that looks for new files every second, would it transfer the files from gcs to VM even if the upload is incomplete or the transfer would start whenever the upload is complete and not while it is uploading ?

推荐答案

Google Cloud Storage上传是strongly consistent用于对象上传.这意味着,只有100%上传对象并且完成任何Cloud Storage管家(例如复制)后,该对象才可见.在上传完成并且您的软件/工具收到成功响应之前,您将无法看到或访问对象.

Google Cloud Storage uploads are strongly consistent for object uploads. This means that the object is not visible until the object is 100% uploaded and any Cloud Storage housekeeping (such as replication) is complete. You cannot see nor access an object until the upload has completed and your software/tool receives a success response.

Google云存储一致性

即使上传仍在进行,文件仍会出现吗?意思是 如果我构建了一个每秒查找新文件的程序, 将文件从gcs传输到VM,即使上传不完整或 传输将在上传完成后开始,而不是在 它正在上传?

Do files appear even when the upload is still going on ? which means if I build a program that looks for new files every second, would it transfer the files from gcs to VM even if the upload is incomplete or the transfer would start whenever the upload is complete and not while it is uploading ?

否,在新对象100%可用之前,您的程序将看不到新对象.在Google Cloud Storage中没有部分上传.

No, your program will not see new objects until the new objects are 100% available. In Google Cloud Storage there are not partial uploads.

这篇关于GCP存储:上传完成之前是否会显示文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆