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

rollback original table when rename fails #86

Merged
merged 1 commit into from
Dec 3, 2021

Conversation

zajca
Copy link
Member

@zajca zajca commented Dec 1, 2021

This should be bit safer approach when using CTAS when second rename fails original table has at least chance to be rolled back to original name and we will not be stuck in state when we have in bucket table which is not in metadata and missing table which is in metadata.

@zajca zajca marked this pull request as ready for review December 2, 2021 09:29
@zajca zajca requested review from a team and martinjunger and removed request for a team December 2, 2021 09:29
Copy link
Contributor

@martinjunger martinjunger left a comment

Choose a reason for hiding this comment

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

LGTM

@zajca zajca merged commit c0fa32c into master Dec 3, 2021
@zajca zajca deleted the zajca-synapse-ensure_table_exists branch December 3, 2021 08:09
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.

2 participants