fix(backups): a MariaDB restore can pin a dump another overlapping run uploaded
Les mainteneurs répondent en général sous 3 jours
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- Une demi-journée
- Accessibilité débutants
- 62/100
Piste de recherche
Start in internal/backupcontroller/mariadbstrategy_controller.go at the restore path, where the recorded dump name is trusted after an existence check. Then read contestedMariaDBDump in mariadbstrategy_cleanup.go and reuse its check against the other runs on the prefix. Done when restore falls back to the best-effort path and raises the BestEffortDump warning whenever another run could own the dump.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
A MariaDB restore trusts the dump name recorded on the Backup and checks only that the object exists (internal/backupcontroller/mariadbstrategy_controller.go, the restore path added in #5227). The probe that records the name lets only finished runs contest the attribution. So when two backup runs of one application overlap, a dump uploaded by the run that was still unfinished at probe time can be recorded as this Backup's dump, and the restore then pins it without the BestEffortDump warning.
This is not a regression: before #5227 the restore took the newest dump in that case too. The delete path already handles it: contestedMariaDBDump in mariadbstrategy_cleanup.go re-checks the recorded name against every run on the prefix.
Fix: run the same contest on restore, and when another run could own the dump, fall back to the best-effort path and raise the BestEffortDump warning.
- Langage dominant
- Go
- Étoiles
- 2.2k
- Forks
- 209
- Merge moyen
- 4 j 14 h
- PR mergées (30 j)
- 140
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de cozystack/cozystack
-
triage/needs-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
cozystack/cozystack#5464 · 1 réaction ·
Les mainteneurs répondent en général sous 3 jours
-
test(kubernetes-nodes): stop hand-typing the default Talos version in tests that are not about itOuvertearea/testing kind/cleanup triage/needs-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
cozystack/cozystack#5456 · 1 réaction ·
Les mainteneurs répondent en général sous 3 jours
-
area/testing kind/cleanup triage/needs-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 83/100
cozystack/cozystack#5447 · 1 réaction ·
Les mainteneurs répondent en général sous 3 jours
-
area/kubernetes kind/bug triage/needs-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
cozystack/cozystack#5445 · 1 réaction ·
Les mainteneurs répondent en général sous 3 jours
-
kind/bug triage/needs-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
cozystack/cozystack#5438 · 1 réaction ·
Les mainteneurs répondent en général sous 3 jours
Toutes les issues de cozystack/cozystack
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
-
Correct local module testing instructions for Go sample contributorsPeut-être pris @slievrly l’a pris aujourd’hui. Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 90/100
-
internal/core: cleanAttachmentName splits a rune at the 255-byte cap and stores invalid UTF-8Peut-être pris @pacwestnobody l’a pris aujourd’hui. Ouvertego good first issue help wanted
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
Podiom/Podiom#427 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
TestLaunchGolden spends about 98 seconds on fake-agent exit delays under -racePeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
Les mainteneurs répondent en général sous 1 jour
-
factory:subtask
Difficulté 1/5 Moins d'une heure Accessibilité débutants 95/100
Les mainteneurs répondent en général sous 1 jour