Retention policy only prunes the current `serverName`; archives of earlier lineages are never cleaned up
維護者通常 2 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
Start by reading retention.md and tracing how ObjectStore.status reports lineages and how retention runs select a serverName. The issue’s documentation requirement is directly actionable; the proposed opt-in also needs rules for identifying referenced lineages and deciding when their newest WAL or backup is outside the window. Done when the per-lineage behavior and safety condition are documented, or the opt-in is implemented with tests confirming active lineages are retained and inactive expired ones are pruned.
由索引模型根據 Issue 內容生成。
描述
Problem
The recommended recovery pattern restores from the old serverName and archives to a new one, because the plugin refuses to archive into a non-empty folder. After each recovery, the ObjectStore therefore holds several lineages:
s3://bucket/cluster-a/ (original)
s3://bucket/cluster-a-dr1/ (after recovery 1)
s3://bucket/cluster-a-dr2/ (after recovery 2, current)
The retention run (barman-cloud-backup-delete --retention-policy "RECOVERY WINDOW OF 7 DAYS" s3://bucket/ <serverName>) only covers the cluster's current serverName. The earlier lineages are never pruned and grow without bound unless someone deletes them by hand. ObjectStore.status lists all lineages with their recovery windows, so the plugin already knows about them.
Versions: plugin-barman-cloud v0.16.0, CloudNativePG 1.30.2.
Expected
At least, retention.md should state that the policy is applied per serverName and covers only the lineage a cluster currently archives to, so that operators plan cleanup of old lineages.
Better, an opt-in on the ObjectStore, for example:
spec:
retentionPolicy: "7d"
pruneInactiveServerNames: true # apply the window to lineages no cluster archives to anymore
A lineage would be deleted once its newest WAL/backup is older than the window, and never while a cluster still references it.
Related: #827 (docs on serverName separation), #1163, #405.
- 主要語言
- Go
- 星號
- 214
- 分支
- 91
- 平均合併
- 2 天 11 小時
- 30 天內合併 PR
- 38
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
cloudnative-pg/plugin-barman-cloud 的其他 Issue
-
Cluster never reconciles when created before its ObjectStore: requeue without RequeueAfter is dropped可能已有人在做 @shanurwan 於 17 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 62/100
cloudnative-pg/plugin-barman-cloud#1236 ·
維護者通常 2 天內回覆
-
難度 2/5 1-3 小時 新手友好度 88/100
cloudnative-pg/plugin-barman-cloud#1117 · 1 個 reaction ·
維護者通常 2 天內回覆
-
Add RBAC aggregation labels to ObjectStore editor/viewer ClusterRoles可能已有人在做 @stefanpeknik 於 76 天前認領。 未關閉
難度 1/5 1 小時以內 新手友好度 82/100
cloudnative-pg/plugin-barman-cloud#1102 ·
維護者通常 2 天內回覆
-
難度 4/5 3-5 天 新手友好度 47/100
cloudnative-pg/plugin-barman-cloud#1268 ·
維護者通常 2 天內回覆
-
難度 2/5 1-3 小時 新手友好度 55/100
cloudnative-pg/plugin-barman-cloud#1263 ·
維護者通常 2 天內回覆
查看 cloudnative-pg/plugin-barman-cloud 的全部 Issue
相似的 Issue
-
[Bug]: Azure SAS signing uses local time instead of UTC, shifting validity window on non-UTC hosts可能已有人在做 @huanghaoyuanhhy 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
zilliztech/milvus-backup#1418 ·
維護者通常 1 天內回覆
-
good first issue
難度 2/5 1-3 小時 新手友好度 86/100
eugenioenko/ttt#1909 ·
維護者通常 1 天內回覆
-
ColumnIndex max truncation returns a value smaller than the real max when the prefix is all 0xFF未關閉
難度 2/5 1-3 小時 新手友好度 84/100
parquet-go/parquet-go#819 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 83/100
-
feat(arithmetization): update `arithmetization` to ZkC version `v1.2.38`可能已有人在做 @DavePearce 今天認領。 未關閉
難度 1/5 1 小時以內 新手友好度 78/100
LFDT-Lineth/lineth-monorepo#4679 ·
維護者通常 1 天內回覆