Skip to content
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.

YACHT-1316: Updating retention process to avoid possible situation th… #139

Merged
merged 3 commits into from
Apr 15, 2019

Conversation

radkomateusz
Copy link
Contributor

…at creating new backup of table, which previous backup has more than 7 months, causes removing previous version of backup.

Removing unused code. Adding units tests for all currently known situations.

…at creating new backup of table, which previous backup has more than 7 months, causes removing previous version of backup.

Removing unused code. Adding units tests for all currently known situations.
@coveralls
Copy link

coveralls commented Apr 12, 2019

Pull Request Test Coverage Report for Build 1117

  • 32 of 32 (100.0%) changed or added relevant lines in 5 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.006%) to 84.24%

Totals Coverage Status
Change from base Build 1098: 0.006%
Covered Lines: 2400
Relevant Lines: 2849

💛 - Coveralls

…, 10 young backups and there is created 4 new backups in the same day (duplicates). Expectation is that during retention deduplication will happen first, only the newest today version will stay, then as 1+10 =11, 11th, oldest young backup will be removed. Old backup will stay as it was.
from src.retention.policy.filter.ten_young_backup_versions_filter import \
TenYoungBackupVersionsFilter
from src.retention.policy.filter.only_one_version_above_7_months_filter import \
OnlyOneVersionAbove7MonthsFilter


class Fifo10UpTo7Months(object):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rename as retention strategy is now more customised

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

renamed to RetentionPolicy. done

…he only one retention policy currently implemented and it's now taking more details into consideration than mentioned in previous name.
@radkomateusz radkomateusz merged commit 89155c3 into master Apr 15, 2019
@radkomateusz radkomateusz deleted the YACHT-1316 branch April 15, 2019 15:16
przemyslaw-jasinski pushed a commit that referenced this pull request Apr 23, 2019
YACHT-1316: Updating retention process to avoid possible situation th…
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants