Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

GCS Backup times out at 120s

未关闭
#771 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
42/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
google-cloud, kubernetes, postgresql

调研方向

从 barman-cloud-backup 命令的 Google Cloud Storage 上传路径开始,追踪 120 秒超时在哪里设置。将该值与 --read-timeout 进行比较,并验证慢速上传是如何处理的。完成的标准是,已配置的超时控制上传操作,并且所报告的超时行为有适当的测试覆盖。

由索引模型根据 Issue 内容生成。

描述

bug

We have kubernetes clusters at remote locations that are connected to the cloud via slow connections. The database size is also small (approx 40MB compressed). However the upload to GCS buckets is timing out. Despite setting the --read-timeout to 600, it times out after 120s.

The command used is as follows
barman-cloud-backup --user postgres --name <name>--gzip --read-timeout 600 --cloud-provider google-cloud-storage gs://<gcs bucket/folder> <cluster name>

The error is as follows
ERROR: <class 'google.api_core.exceptions.RetryError'>
ERROR: Timeout of 120.0s exceeded, last exception: ('Connection aborted.', timeout('The write operation timed out'))
ERROR: Upload error: Timeout of 120.0s exceeded, last exception: ('Connection aborted.', timeout('The write operation timed out')) (worker 0)

It looks like the timeout is hard coded and cannot be changed. I have also tried setting the read-timeout to 0 without any success.

主要语言
Go
星标
198
派生
81
平均合并
2 天 6 小时
30 天内合并 PR
19

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

cloudnative-pg/plugin-barman-cloud 的其他 Issue

查看 cloudnative-pg/plugin-barman-cloud 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。