为什么数据存储导出 API 不支持近线存储类型?



我们最近使用新的数据存储导出 API 配置了自动数据存储导出到云存储。

很明显,我们希望使用Nearline存储桶来存储备份,但是当我们尝试将数据存储数据库导出到近线存储桶时,我们收到以下错误:

Caused by: com.google.api.client.http.HttpResponseException: 400 BAD_REQUEST
{
"error": {
"code": 400,
"message": "Bucket xxx-xxx-xxx has storage class NEARLINE which is not supported. Must be one of regional, multi_regional, standard, durable_reduced_availability.",
"errors": [
{
"message": "Bucket xxx-xxx-xxx has storage class NEARLINE which is not supported. Must be one of regional, multi_regional, standard, durable_reduced_availability.",
"domain": "global",
"reason": "badRequest"
}
],
"status": "INVALID_ARGUMENT"
}
}

我在文档中没有找到任何关于应该使用的云存储桶类型的内容。

是文档还是服务错误?

这是正确的行为。由于导出写入 GCS 的方式,不支持近线和冷线。

您可以导出为标准,然后更改为近线。您甚至可以使用 SetStorageClass 生命周期操作自动执行此操作。

相关内容

最新更新