Retention policy only prunes the current `serverName`; archives of earlier lineages are never cleaned up
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 45/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Go
- Estrellas
- 214
- Forks
- 91
- Merge medio
- 2 d 11 h
- PR fusionados (30 d)
- 38
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de cloudnative-pg/plugin-barman-cloud
-
Cluster never reconciles when created before its ObjectStore: requeue without RequeueAfter is droppedPosiblemente ocupada @shanurwan la tomó hace 17 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
cloudnative-pg/plugin-barman-cloud#1236 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
cloudnative-pg/plugin-barman-cloud#1117 · 1 reacción ·
Los mantenedores suelen responder en 2 días
-
Add RBAC aggregation labels to ObjectStore editor/viewer ClusterRolesPosiblemente ocupada @stefanpeknik la tomó hace 76 días. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
cloudnative-pg/plugin-barman-cloud#1102 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 4/5 3-5 días Aptitud para principiantes 47/100
cloudnative-pg/plugin-barman-cloud#1268 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 55/100
cloudnative-pg/plugin-barman-cloud#1263 ·
Los mantenedores suelen responder en 2 días
Todos los issues de cloudnative-pg/plugin-barman-cloud
Issues similares
-
[Bug]: Azure SAS signing uses local time instead of UTC, shifting validity window on non-UTC hostsPosiblemente ocupada @huanghaoyuanhhy la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
zilliztech/milvus-backup#1418 ·
Los mantenedores suelen responder en 1 día
-
good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
eugenioenko/ttt#1909 ·
Los mantenedores suelen responder en 1 día
-
ColumnIndex max truncation returns a value smaller than the real max when the prefix is all 0xFFAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
parquet-go/parquet-go#819 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
-
feat(arithmetization): update `arithmetization` to ZkC version `v1.2.38`Posiblemente ocupada @DavePearce la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
LFDT-Lineth/lineth-monorepo#4679 ·
Los mantenedores suelen responder en 1 día