cloudnative-pg / cloudnative-pg/plugin-barman-cloud

base backup are not pruned (even though retention is set)

オープン
#770 コメント 1 件 リアクション 3 件 担当者 0 名 GitHub で見る
bug
主要言語
Go
スター
191
フォーク
72
平均マージ
2日 21時間
マージ済み PR(30日)
21

説明

hey, i’ve encountered a problem - retention policy works for wals, but not for base backups. Base backups are not pruned at all. Im using hetzner s3 if it matters, wals retention works fine

```
apiVersion: barmancloud.cnpg.io/v1
kind: ObjectStore
metadata:
name: main-db-object-store
namespace: main-db
spec:
retentionPolicy: "7d"

# needed for non-AWS S3-compatible object storages
instanceSidecarConfiguration:
env:
- name: AWS_REQUEST_CHECKSUM_CALCULATION
value: when_required
- name: AWS_RESPONSE_CHECKSUM_VALIDATION
value: when_required
- name: AWS_MAX_ATTEMPTS
value: "10"

configuration:
destinationPath: "...."
endpointURL: "https://hel1.your-objectstorage.com/"
s3Credentials:
accessKeyId:
name: hetzner-s3-creds
key: ACCESS_KEY_ID
secretAccessKey:
name: hetzner-s3-creds
key: ACCESS_SECRET_KEY
wal:
compression: gzip
maxParallel: 4
archiveAdditionalCommandArgs:
- "--read-timeout=1200"
data:
compression: gzip
jobs: 1
additionalCommandArgs:
- "--read-timeout=3600"
- "--min-chunk-size=512MB"
---
apiVersion: postgresql.cnpg.io/v1
kind: ScheduledBackup
metadata:
name: main-db-daily-backup
namespace: main-db
spec:
schedule: "0 0 2 * * *"
backupOwnerReference: self
cluster:
name: main-db
method: plugin
pluginConfiguration:
name: barman-cloud.cloudnative-pg.io
```

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Start by reproducing the ObjectStore configuration with retentionPolicy set to "7d" and the ScheduledBackup using the Barman Cloud plugin. Compare pruning behavior for WALs and base backups, including the Hetzner S3-compatible endpoint; done means base backups older than the configured retention period are pruned without breaking WAL retention.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
go, postgresql
領域
databases
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。