Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix finding tables which would have out of retention data #4107

Conversation

sandeepsukhani
Copy link
Contributor

What this PR does / why we need it:
We optimise applying retention by skipping tables that would not have any out of retention data. The code was incorrectly skipping some tables because it was using the highest retention period as a reference instead of the smallest. All the tables older than or overlapping with the smallest retention period would possibly have some data to be deleted. This PR fixes the code.

Checklist

  • Tests updated

@sandeepsukhani sandeepsukhani requested a review from a team as a code owner August 6, 2021 07:31
Copy link
Contributor

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

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

LGTM

@sandeepsukhani sandeepsukhani force-pushed the fix-compactor-finding-tables-out-of-retention branch from e5930f3 to ba09eb2 Compare August 6, 2021 07:42
@pull-request-size pull-request-size bot added size/M and removed size/L labels Aug 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants