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

[controller] Do not delete true backup version during Repush #945

Merged
merged 11 commits into from May 17, 2024

Conversation

majisourav99
Copy link
Contributor

@majisourav99 majisourav99 commented Apr 15, 2024

Do not delete true backup version during Repush

During repush Venice deletes the actual backup version instead of current version.
For example some store has versions: v9, v10. When a repush starts it creates v11 and it deletes v9 assuming it is a backup version, where as repush actually copies data from v10 to v11.
Now later if use wants to rollback to backup version they can only rollback to v10 which is exactly same as v11 as v9 was deleted.

This PR fixes that. It relies on StoreBackupVersionCleanupService to delete the backup version v10 asynchronously. Currently it checks controller.backup.version.metadata.fetch.cleanup.enabled to do a safer delete of previous current version which validates there are no reads to v10 version.

How was this PR tested?

CI

Does this PR introduce any user-facing changes?

  • No. You can skip the rest of this section.
  • Yes. Make sure to explain your proposed changes and call out the behavior change.
    The change in backup version definition for repush, the backup version is the current version before push instead of version before that.

Copy link
Contributor

@gaojieliu gaojieliu left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

@majisourav99 majisourav99 merged commit c778d63 into linkedin:main May 17, 2024
33 checks passed
@majisourav99 majisourav99 deleted the repushFix branch May 19, 2024 16:32
FelixGV added a commit to FelixGV/venice that referenced this pull request May 21, 2024
@FelixGV
Copy link
Contributor

FelixGV commented May 21, 2024

@smaji, after my rebase integrated this PR, I found three naked gets introduced by this change. I fixed them so that the code compiles, but we may wish to handle them differently than what I did. Can you please take a look at this commit and LMK if you have any concerns with the way I handled these naked gets? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants