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

feat(migrations) implement post up and teardown functionality in connectors #3957

Closed
wants to merge 1 commit into from

Conversation

bungle
Copy link
Member

@bungle bungle commented Nov 7, 2018

Summary

This implements a way to run a strategy specific code after up and teardown migration phases. For Cassandra it also implements a wait for consensus on those calls.

It is made according to this comment on issue #3924:
#3924 (comment)

self.connector:close()
return nil, prefix_err(self, err)
end
end
Copy link
Member

Choose a reason for hiding this comment

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

When both run_up and run_teardown are given, this will wait for schema consensus twice (and print the verbose logs twice as well). Will update locally.

end


function _mt:post_run_teardown_migrations()
Copy link
Member

Choose a reason for hiding this comment

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

We should probably not bother with those since the parent class defines these... Will update as well.

@thibaultcha
Copy link
Member

Merged!

@thibaultcha thibaultcha closed this Nov 8, 2018
@thibaultcha thibaultcha deleted the feat/post-up-and-teardown-migrations branch November 8, 2018 01:17
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