Retention policy only prunes the current `serverName`; archives of earlier lineages are never cleaned up
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 45/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Go
- Star
- 214
- Fork
- 91
- Merge trung bình
- 2 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 38
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của cloudnative-pg/plugin-barman-cloud
-
Cluster never reconciles when created before its ObjectStore: requeue without RequeueAfter is droppedCó thể đã có người làm @shanurwan đã nhận 17 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
cloudnative-pg/plugin-barman-cloud#1236 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
cloudnative-pg/plugin-barman-cloud#1117 · 1 reaction ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Add RBAC aggregation labels to ObjectStore editor/viewer ClusterRolesCó thể đã có người làm @stefanpeknik đã nhận 76 ngày trước. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
cloudnative-pg/plugin-barman-cloud#1102 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 47/100
cloudnative-pg/plugin-barman-cloud#1268 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 55/100
cloudnative-pg/plugin-barman-cloud#1263 ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của cloudnative-pg/plugin-barman-cloud
Issue tương tự
-
[Bug]: Azure SAS signing uses local time instead of UTC, shifting validity window on non-UTC hostsCó thể đã có người làm @huanghaoyuanhhy đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
zilliztech/milvus-backup#1418 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
eugenioenko/ttt#1909 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ColumnIndex max truncation returns a value smaller than the real max when the prefix is all 0xFFĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
parquet-go/parquet-go#819 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
-
feat(arithmetization): update `arithmetization` to ZkC version `v1.2.38`Có thể đã có người làm @DavePearce đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
LFDT-Lineth/lineth-monorepo#4679 ·
Maintainer thường phản hồi trong vòng 1 ngày