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

[Bug] Plugins are always used to archive WAL files if they have the capability

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
停滞
技术栈
go, postgresql
领域
backend, databases

调研方向

从 pkg/management/postgres/archiver/archiver.go 开始,重点查看 archiveWALViaPlugins 以及 isWALArchiver 的处理。复现 isWALArchiver: false 的 YAML 情况,并验证 WAL 不会通过该插件进行归档;当显式设置得到遵守,同时具备能力的插件在启用后仍然可以进行归档时,即表示完成。

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

描述

bug

isWALArchiver is ignored and plugins are always used to archive WAL files if they have the capability to do it.

Given the following plugins stanza:

  plugins:
    - name: barman-cloud.cloudnative-pg.io
      enabled: true
      isWALArchiver: false
      parameters:
        serverName: cnpg-default
        barmanObjectName: cnpg-default-barman

You would expect WAL not to be archived using this plugin. However, there is no filtering in the archiveWALViaPlugins. It always archives with plugins that support WAL archiving.

The only cases where it won't archive WAL are:

  1. if you specify a plugin as the WAL archiver and it doesn't have that capability.
  2. you don't specify any plugins
主要语言
Go
星标
200
派生
82
平均合并
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 摘要。