pingcap / pingcap/tidb-operator
Optimize bks backup logic
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 1.3k
- Forks
- 540
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 18
Description
Feature Request
Is your feature request related to a problem? Please describe:
when delete bks,bk will be deleted and the whole backup will be deleted
Describe the feature you'd like:
It is recommended to implement delete --cascade=orphan: only delete BackupSchedule to make backup an orphan. If the same BackupSchedule is created at that time, these orphans can be associated again;
Currently BackupSchedule->Backup->job has this kind of relationship. According to the default garbage collection policy, if the upper level is deleted, the lower level will be deleted, so there must be a way to make a certain level an orphan
In this way, it is more flexible to adjust the related policies of scheduled backups, especially in the case where the actual running time is inconsistent with the expected running time, the best way is to delete it and start again.
Describe alternatives you've considered:
Teachability, Documentation, Adoption, Migration Strategy:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the BackupSchedule-to-Backup-to-job ownership and garbage-collection logic in the operator. Define how a cascade=orphan deletion should preserve backups and allow them to be associated with a newly created BackupSchedule, then verify the behavior across the relevant backup lifecycle.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, kubernetes
- Domain
- infrastructure
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100