google-cloud-storage - GCS 中删除的全局一致性

标签 google-cloud-storage

以下片段来自 GCS docs :

Strong global consistency also extends to deletion (DELETE) operations on objects and update (PUT) operations that change existing object and bucket ACLs. If you delete an object and you receive a success response, an immediate attempt to download (GET) the object will result in a 404 Not Found status code. Likewise, if you change ACLs on an object or bucket and you receive a success response, the newly applied object or bucket ACLs are immediately available.

令人困惑,我认为全局一致性意味着我不会得到 404 Not Found 错误,对吧?

最佳答案

您将收到 404 错误,因为删除操作成功完成后该对象不再存在。如果不是为了强一致性,可能会删除一个对象,然后对该对象执行 GET 并取回该对象的旧的、删除前的状态。

关于google-cloud-storage - GCS 中删除的全局一致性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25179799/

相关文章:

java - 使用 java 下载 Blob 会产生一个巨大的文件

java - Google App Engine 和云存储 : The AppIdentity service threw an unexpected error

Flutter从谷歌云平台加载Image.network()

google-app-engine - 使用 Google Domains 和 Google Bucket 进行静态托管时如何安装 SSL?

node.js - 具有内容长度限制的签名 URL

node.js - 使用 Node.js 将大量文件上传到 Google Storage 存储桶

google-app-engine - App Engine 实例的 GCS 入口和导出费用

google-cloud-storage - 如何列出最近添加到 GCS 存储桶的文件

python - 如何获取 App Engine 开发服务器上 Google Cloud Storage 文件对象的服务 URL?

google-cloud-storage - 在 Google 存储上安装存储桶