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

Check if a secondary is connected before demoting primary #7

Closed
ioguix opened this issue Mar 1, 2016 · 1 comment
Closed

Check if a secondary is connected before demoting primary #7

ioguix opened this issue Mar 1, 2016 · 1 comment
Milestone

Comments

@ioguix
Copy link
Member

ioguix commented Mar 1, 2016

In sub pgsql_demote, we need to make sure that at least one secondary is connected when demoting the primary on a switchover scenario.

If Pacemaker move the master role to another node and demote the old one as a slave, we should raise an error ("soft" failure ?) if the new master-to-be is not up-to-date with the current master.

@ioguix ioguix added this to the v1.1.0 milestone Mar 1, 2016
@ioguix
Copy link
Member Author

ioguix commented Jun 17, 2016

This has been fixed in 2.0 in commit 952cb3c

The solution adopted is to check if the slave received the shutdown checkpoint from the master after it has been demoted.

@ioguix ioguix closed this as completed Jun 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant