-
Notifications
You must be signed in to change notification settings - Fork 715
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
FB8-131: Option to shutdown master if semi-sync is being switched off while there are active un-acked trxns #966
Conversation
mysql-test/suite/rpl/t/rpl_semi_sync_master_crash_if_active_trxs.test
Outdated
Show resolved
Hide resolved
mysql-test/suite/rpl/t/rpl_semi_sync_master_crash_if_active_trxs.test
Outdated
Show resolved
Hide resolved
mysql-test/suite/rpl/t/rpl_semi_sync_master_crash_if_active_trxs.test
Outdated
Show resolved
Hide resolved
c4d2a3c
to
55ed55b
Compare
PR was updated according to comments |
mysql-test/suite/rpl/t/rpl_semi_sync_master_crash_if_active_trxs.test
Outdated
Show resolved
Hide resolved
mysql-test/suite/rpl/t/rpl_semi_sync_master_crash_if_active_trxs.test
Outdated
Show resolved
Hide resolved
mysql-test/suite/rpl/t/rpl_semi_sync_master_crash_if_active_trxs.test
Outdated
Show resolved
Hide resolved
mysql-test/suite/rpl/t/rpl_semi_sync_master_crash_if_active_trxs.test
Outdated
Show resolved
Hide resolved
mysql-test/suite/rpl/t/rpl_semi_sync_master_crash_if_active_trxs.test
Outdated
Show resolved
Hide resolved
mysql-test/suite/rpl/t/rpl_semi_sync_master_crash_if_active_trxs.test
Outdated
Show resolved
Hide resolved
mysql-test/suite/rpl/t/rpl_semi_sync_master_crash_if_active_trxs.test
Outdated
Show resolved
Hide resolved
mysql-test/suite/rpl/t/rpl_semi_sync_master_crash_if_active_trxs.test
Outdated
Show resolved
Hide resolved
mysql-test/suite/rpl/t/rpl_semi_sync_master_crash_if_active_trxs.test
Outdated
Show resolved
Hide resolved
mysql-test/suite/rpl/t/rpl_semi_sync_master_crash_if_active_trxs.test
Outdated
Show resolved
Hide resolved
PR was updated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with connection master1
addressed
mysql-test/suite/rpl/t/rpl_semi_sync_master_crash_if_active_trxs.test
Outdated
Show resolved
Hide resolved
afa0d77
to
1c762d0
Compare
… while there are active un-acked trxns Jira issue: https://jira.percona.com/browse/FB8-131 Reference Patch: facebook@2d47615 Reference Patch: facebook@d1ea741 Reference Patch: facebook@f5085f4 Reference Patch: facebook@9204c65 ---------- facebook@2d47615 ---------- Option to shutdown master if semi-sync is being switched off while there are active un-acked trxns Summary: Semi-sync master can be switched off manually or because of a timeout while waiting for an ack. This change introduces a new variable rpl_semi_sync_master_crash_if_active_trxs which when set to true will cause the master to shutdown (after printing an error msg) if semi-sync is being switched off while there are active un-acked transactions. This prevents any un-acked trx from committing on the master. Originally Reviewed By: hermanlee fbshipit-source-id: facebook@c378441 ---------- facebook@d1ea741 ---------- Fix test flakiness in rpl.rpl_semi_sync-master_crash_if_active_trxs Summary: The test would sometimes fail if the slave's retry count is exhausted before the master comes up. Set the slave to retry forever instead. Squash with D5841339 Originally Reviewed By: abhinav04sharma fbshipit-source-id: facebook@c12f822 ---------- facebook@f5085f4 ---------- Use master_retry_count to fix rpl.rpl_semi_sync_master_crash_if_active_trxs Summary: The proper variable to adjust is master_retry_count, not master_connect_retry. Squash with D5841339 Originally Reviewed By: abhinav04sharma fbshipit-source-id: facebook@6938715 ---------- facebook@9204c65 ---------- Delete pid file when crashing after timeout with unacked trx Summary: If rpl_semi_sync_master_crash_if_active_trxs = true, the server crashes after a timeout if there are any active unacked transactions. mysqld_safe expects the pid file to be deleted if the expectation is to not bring the intance back up again. This change deletes the pid file before crashing on this condition. Squash with D5841339 Originally Reviewed By: Tema fbshipit-source-id: facebook@a94df24
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lth has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
… while there are active un-acked trxns (#966) Summary: Jira issue: https://jira.percona.com/browse/FB8-131 Reference Patch: 2d47615 Reference Patch: d1ea741 Reference Patch: f5085f4 Reference Patch: 9204c65 Option to shutdown master if semi-sync is being switched off while there are active un-acked trxns Semi-sync master can be switched off manually or because of a timeout while waiting for an ack. This change introduces a new variable rpl_semi_sync_master_crash_if_active_trxs which when set to true will cause the master to shutdown (after printing an error msg) if semi-sync is being switched off while there are active un-acked transactions. This prevents any un-acked trx from committing on the master. Also delete pid file when crashing after timeout with unacked trx. If rpl_semi_sync_master_crash_if_active_trxs = true, the server crashes after a timeout if there are any active unacked transactions. mysqld_safe expects the pid file to be deleted if the expectation is to not bring the intance back up again. Pull Request resolved: #966 Reviewed By: hermanlee Differential Revision: D14308888 Pulled By: hermanlee fbshipit-source-id: f314c5b
… while there are active un-acked trxns (#966) Summary: Jira issue: https://jira.percona.com/browse/FB8-131 Reference Patch: 2d47615 Reference Patch: d1ea741 Reference Patch: f5085f4 Reference Patch: 9204c65 Option to shutdown master if semi-sync is being switched off while there are active un-acked trxns Semi-sync master can be switched off manually or because of a timeout while waiting for an ack. This change introduces a new variable rpl_semi_sync_master_crash_if_active_trxs which when set to true will cause the master to shutdown (after printing an error msg) if semi-sync is being switched off while there are active un-acked transactions. This prevents any un-acked trx from committing on the master. Also delete pid file when crashing after timeout with unacked trx. If rpl_semi_sync_master_crash_if_active_trxs = true, the server crashes after a timeout if there are any active unacked transactions. mysqld_safe expects the pid file to be deleted if the expectation is to not bring the intance back up again. Pull Request resolved: #966 Reviewed By: hermanlee Differential Revision: D14308888 Pulled By: hermanlee fbshipit-source-id: ab615fe
… while there are active un-acked trxns (facebook#966) Summary: Jira issue: https://jira.percona.com/browse/FB8-131 Reference Patch: facebook@2d47615 Reference Patch: facebook@d1ea741 Reference Patch: facebook@f5085f4 Reference Patch: facebook@9204c65 Option to shutdown master if semi-sync is being switched off while there are active un-acked trxns Semi-sync master can be switched off manually or because of a timeout while waiting for an ack. This change introduces a new variable rpl_semi_sync_master_crash_if_active_trxs which when set to true will cause the master to shutdown (after printing an error msg) if semi-sync is being switched off while there are active un-acked transactions. This prevents any un-acked trx from committing on the master. Also delete pid file when crashing after timeout with unacked trx. If rpl_semi_sync_master_crash_if_active_trxs = true, the server crashes after a timeout if there are any active unacked transactions. mysqld_safe expects the pid file to be deleted if the expectation is to not bring the intance back up again. Pull Request resolved: facebook#966 Reviewed By: hermanlee Differential Revision: D14308888 Pulled By: hermanlee fbshipit-source-id: ab615fe
… while there are active un-acked trxns (facebook#966) Summary: Jira issue: https://jira.percona.com/browse/FB8-131 Reference Patch: facebook@2d47615 Reference Patch: facebook@d1ea741 Reference Patch: facebook@f5085f4 Reference Patch: facebook@9204c65 Option to shutdown master if semi-sync is being switched off while there are active un-acked trxns Semi-sync master can be switched off manually or because of a timeout while waiting for an ack. This change introduces a new variable rpl_semi_sync_master_crash_if_active_trxs which when set to true will cause the master to shutdown (after printing an error msg) if semi-sync is being switched off while there are active un-acked transactions. This prevents any un-acked trx from committing on the master. Also delete pid file when crashing after timeout with unacked trx. If rpl_semi_sync_master_crash_if_active_trxs = true, the server crashes after a timeout if there are any active unacked transactions. mysqld_safe expects the pid file to be deleted if the expectation is to not bring the intance back up again. Pull Request resolved: facebook#966 Reviewed By: hermanlee Differential Revision: D14308888 Pulled By: hermanlee fbshipit-source-id: ab615fe
… while there are active un-acked trxns (facebook#966) (facebook#966) Summary: Jira issue: https://jira.percona.com/browse/FB8-131 Reference Patch: facebook@2d47615 Reference Patch: facebook@d1ea741 Reference Patch: facebook@f5085f4 Reference Patch: facebook@9204c65 Option to shutdown master if semi-sync is being switched off while there are active un-acked trxns Semi-sync master can be switched off manually or because of a timeout while waiting for an ack. This change introduces a new variable rpl_semi_sync_master_crash_if_active_trxs which when set to true will cause the master to shutdown (after printing an error msg) if semi-sync is being switched off while there are active un-acked transactions. This prevents any un-acked trx from committing on the master. Also delete pid file when crashing after timeout with unacked trx. If rpl_semi_sync_master_crash_if_active_trxs = true, the server crashes after a timeout if there are any active unacked transactions. mysqld_safe expects the pid file to be deleted if the expectation is to not bring the intance back up again. Pull Request resolved: facebook#966 Differential Revision: D14308888 Pulled By: hermanlee
… while there are active un-acked trxns (facebook#966) (facebook#966) Summary: Jira issue: https://jira.percona.com/browse/FB8-131 Reference Patch: facebook@2d47615 Reference Patch: facebook@d1ea741 Reference Patch: facebook@f5085f4 Reference Patch: facebook@9204c65 Option to shutdown master if semi-sync is being switched off while there are active un-acked trxns Semi-sync master can be switched off manually or because of a timeout while waiting for an ack. This change introduces a new variable rpl_semi_sync_master_crash_if_active_trxs which when set to true will cause the master to shutdown (after printing an error msg) if semi-sync is being switched off while there are active un-acked transactions. This prevents any un-acked trx from committing on the master. Also delete pid file when crashing after timeout with unacked trx. If rpl_semi_sync_master_crash_if_active_trxs = true, the server crashes after a timeout if there are any active unacked transactions. mysqld_safe expects the pid file to be deleted if the expectation is to not bring the intance back up again. Pull Request resolved: facebook#966 Differential Revision: D14308888 Pulled By: hermanlee
… while there are active un-acked trxns (percona#966) (percona#966) Summary: Jira issue: https://jira.percona.com/browse/FB8-131 Reference Patch: facebook/mysql-5.6@2d47615 Reference Patch: facebook/mysql-5.6@d1ea741 Reference Patch: facebook/mysql-5.6@f5085f4 Reference Patch: facebook/mysql-5.6@9204c65 Option to shutdown master if semi-sync is being switched off while there are active un-acked trxns Semi-sync master can be switched off manually or because of a timeout while waiting for an ack. This change introduces a new variable rpl_semi_sync_master_crash_if_active_trxs which when set to true will cause the master to shutdown (after printing an error msg) if semi-sync is being switched off while there are active un-acked transactions. This prevents any un-acked trx from committing on the master. Also delete pid file when crashing after timeout with unacked trx. If rpl_semi_sync_master_crash_if_active_trxs = true, the server crashes after a timeout if there are any active unacked transactions. mysqld_safe expects the pid file to be deleted if the expectation is to not bring the intance back up again. Pull Request resolved: facebook/mysql-5.6#966 Differential Revision: D14308888 Pulled By: hermanlee
… while there are active un-acked trxns (percona#966) (percona#966) Summary: Jira issue: https://jira.percona.com/browse/FB8-131 Reference Patch: facebook/mysql-5.6@2d47615 Reference Patch: facebook/mysql-5.6@d1ea741 Reference Patch: facebook/mysql-5.6@f5085f4 Reference Patch: facebook/mysql-5.6@9204c65 Option to shutdown master if semi-sync is being switched off while there are active un-acked trxns Semi-sync master can be switched off manually or because of a timeout while waiting for an ack. This change introduces a new variable rpl_semi_sync_master_crash_if_active_trxs which when set to true will cause the master to shutdown (after printing an error msg) if semi-sync is being switched off while there are active un-acked transactions. This prevents any un-acked trx from committing on the master. Also delete pid file when crashing after timeout with unacked trx. If rpl_semi_sync_master_crash_if_active_trxs = true, the server crashes after a timeout if there are any active unacked transactions. mysqld_safe expects the pid file to be deleted if the expectation is to not bring the intance back up again. Pull Request resolved: facebook/mysql-5.6#966 Differential Revision: D14308888 Pulled By: hermanlee
… while there are active un-acked trxns (percona#966) (percona#966) Summary: Jira issue: https://jira.percona.com/browse/FB8-131 Reference Patch: facebook/mysql-5.6@2d47615 Reference Patch: facebook/mysql-5.6@d1ea741 Reference Patch: facebook/mysql-5.6@f5085f4 Reference Patch: facebook/mysql-5.6@9204c65 Option to shutdown master if semi-sync is being switched off while there are active un-acked trxns Semi-sync master can be switched off manually or because of a timeout while waiting for an ack. This change introduces a new variable rpl_semi_sync_master_crash_if_active_trxs which when set to true will cause the master to shutdown (after printing an error msg) if semi-sync is being switched off while there are active un-acked transactions. This prevents any un-acked trx from committing on the master. Also delete pid file when crashing after timeout with unacked trx. If rpl_semi_sync_master_crash_if_active_trxs = true, the server crashes after a timeout if there are any active unacked transactions. mysqld_safe expects the pid file to be deleted if the expectation is to not bring the intance back up again. Pull Request resolved: facebook/mysql-5.6#966 Differential Revision: D14308888 Pulled By: hermanlee
… while there are active un-acked trxns (facebook#966) (facebook#966) Summary: Jira issue: https://jira.percona.com/browse/FB8-131 Reference Patch: facebook@2d47615 Reference Patch: facebook@d1ea741 Reference Patch: facebook@f5085f4 Reference Patch: facebook@9204c65 Option to shutdown master if semi-sync is being switched off while there are active un-acked trxns Semi-sync master can be switched off manually or because of a timeout while waiting for an ack. This change introduces a new variable rpl_semi_sync_master_crash_if_active_trxs which when set to true will cause the master to shutdown (after printing an error msg) if semi-sync is being switched off while there are active un-acked transactions. This prevents any un-acked trx from committing on the master. Also delete pid file when crashing after timeout with unacked trx. If rpl_semi_sync_master_crash_if_active_trxs = true, the server crashes after a timeout if there are any active unacked transactions. mysqld_safe expects the pid file to be deleted if the expectation is to not bring the intance back up again. Pull Request resolved: facebook#966 Differential Revision: D14308888 Pulled By: hermanlee
… while there are active un-acked trxns (facebook#966) (facebook#966) Summary: Jira issue: https://jira.percona.com/browse/FB8-131 Reference Patch: facebook@2d47615 Reference Patch: facebook@d1ea741 Reference Patch: facebook@f5085f4 Reference Patch: facebook@9204c65 Option to shutdown master if semi-sync is being switched off while there are active un-acked trxns Semi-sync master can be switched off manually or because of a timeout while waiting for an ack. This change introduces a new variable rpl_semi_sync_master_crash_if_active_trxs which when set to true will cause the master to shutdown (after printing an error msg) if semi-sync is being switched off while there are active un-acked transactions. This prevents any un-acked trx from committing on the master. Also delete pid file when crashing after timeout with unacked trx. If rpl_semi_sync_master_crash_if_active_trxs = true, the server crashes after a timeout if there are any active unacked transactions. mysqld_safe expects the pid file to be deleted if the expectation is to not bring the intance back up again. Pull Request resolved: facebook#966 Differential Revision: D14308888 Pulled By: hermanlee
… while there are active un-acked trxns (facebook#966) (facebook#966) Summary: Jira issue: https://jira.percona.com/browse/FB8-131 Reference Patch: facebook@2d47615 Reference Patch: facebook@d1ea741 Reference Patch: facebook@f5085f4 Reference Patch: facebook@9204c65 Option to shutdown master if semi-sync is being switched off while there are active un-acked trxns Semi-sync master can be switched off manually or because of a timeout while waiting for an ack. This change introduces a new variable rpl_semi_sync_master_crash_if_active_trxs which when set to true will cause the master to shutdown (after printing an error msg) if semi-sync is being switched off while there are active un-acked transactions. This prevents any un-acked trx from committing on the master. Also delete pid file when crashing after timeout with unacked trx. If rpl_semi_sync_master_crash_if_active_trxs = true, the server crashes after a timeout if there are any active unacked transactions. mysqld_safe expects the pid file to be deleted if the expectation is to not bring the intance back up again. Pull Request resolved: facebook#966 Differential Revision: D14308888 Pulled By: hermanlee
… while there are active un-acked trxns (facebook#966) (facebook#966) Summary: Jira issue: https://jira.percona.com/browse/FB8-131 Reference Patch: facebook@2d47615 Reference Patch: facebook@d1ea741 Reference Patch: facebook@f5085f4 Reference Patch: facebook@9204c65 Option to shutdown master if semi-sync is being switched off while there are active un-acked trxns Semi-sync master can be switched off manually or because of a timeout while waiting for an ack. This change introduces a new variable rpl_semi_sync_master_crash_if_active_trxs which when set to true will cause the master to shutdown (after printing an error msg) if semi-sync is being switched off while there are active un-acked transactions. This prevents any un-acked trx from committing on the master. Also delete pid file when crashing after timeout with unacked trx. If rpl_semi_sync_master_crash_if_active_trxs = true, the server crashes after a timeout if there are any active unacked transactions. mysqld_safe expects the pid file to be deleted if the expectation is to not bring the intance back up again. Pull Request resolved: facebook#966 Differential Revision: D14308888 Pulled By: hermanlee
… while there are active un-acked trxns (facebook#966) (facebook#966) Summary: Jira issue: https://jira.percona.com/browse/FB8-131 Reference Patch: facebook@2d47615 Reference Patch: facebook@d1ea741 Reference Patch: facebook@f5085f4 Reference Patch: facebook@9204c65 Option to shutdown master if semi-sync is being switched off while there are active un-acked trxns Semi-sync master can be switched off manually or because of a timeout while waiting for an ack. This change introduces a new variable rpl_semi_sync_master_crash_if_active_trxs which when set to true will cause the master to shutdown (after printing an error msg) if semi-sync is being switched off while there are active un-acked transactions. This prevents any un-acked trx from committing on the master. Also delete pid file when crashing after timeout with unacked trx. If rpl_semi_sync_master_crash_if_active_trxs = true, the server crashes after a timeout if there are any active unacked transactions. mysqld_safe expects the pid file to be deleted if the expectation is to not bring the intance back up again. Pull Request resolved: facebook#966 Differential Revision: D14308888 Pulled By: hermanlee
… while there are active un-acked trxns (facebook#966) (facebook#966) Summary: Jira issue: https://jira.percona.com/browse/FB8-131 Reference Patch: facebook@2d47615 Reference Patch: facebook@d1ea741 Reference Patch: facebook@f5085f4 Reference Patch: facebook@9204c65 Option to shutdown master if semi-sync is being switched off while there are active un-acked trxns Semi-sync master can be switched off manually or because of a timeout while waiting for an ack. This change introduces a new variable rpl_semi_sync_master_crash_if_active_trxs which when set to true will cause the master to shutdown (after printing an error msg) if semi-sync is being switched off while there are active un-acked transactions. This prevents any un-acked trx from committing on the master. Also delete pid file when crashing after timeout with unacked trx. If rpl_semi_sync_master_crash_if_active_trxs = true, the server crashes after a timeout if there are any active unacked transactions. mysqld_safe expects the pid file to be deleted if the expectation is to not bring the intance back up again. Pull Request resolved: facebook#966 Differential Revision: D14308888 Pulled By: hermanlee
… while there are active un-acked trxns (facebook#966) (facebook#966) Summary: Jira issue: https://jira.percona.com/browse/FB8-131 Reference Patch: facebook@2d47615 Reference Patch: facebook@d1ea741 Reference Patch: facebook@f5085f4 Reference Patch: facebook@9204c65 Option to shutdown master if semi-sync is being switched off while there are active un-acked trxns Semi-sync master can be switched off manually or because of a timeout while waiting for an ack. This change introduces a new variable rpl_semi_sync_master_crash_if_active_trxs which when set to true will cause the master to shutdown (after printing an error msg) if semi-sync is being switched off while there are active un-acked transactions. This prevents any un-acked trx from committing on the master. Also delete pid file when crashing after timeout with unacked trx. If rpl_semi_sync_master_crash_if_active_trxs = true, the server crashes after a timeout if there are any active unacked transactions. mysqld_safe expects the pid file to be deleted if the expectation is to not bring the intance back up again. Pull Request resolved: facebook#966 Differential Revision: D14308888 Pulled By: hermanlee
… while there are active un-acked trxns (facebook#966) (facebook#966) Summary: Jira issue: https://jira.percona.com/browse/FB8-131 Reference Patch: facebook@2d47615 Reference Patch: facebook@d1ea741 Reference Patch: facebook@f5085f4 Reference Patch: facebook@9204c65 Option to shutdown master if semi-sync is being switched off while there are active un-acked trxns Semi-sync master can be switched off manually or because of a timeout while waiting for an ack. This change introduces a new variable rpl_semi_sync_master_crash_if_active_trxs which when set to true will cause the master to shutdown (after printing an error msg) if semi-sync is being switched off while there are active un-acked transactions. This prevents any un-acked trx from committing on the master. Also delete pid file when crashing after timeout with unacked trx. If rpl_semi_sync_master_crash_if_active_trxs = true, the server crashes after a timeout if there are any active unacked transactions. mysqld_safe expects the pid file to be deleted if the expectation is to not bring the intance back up again. Pull Request resolved: facebook#966 Differential Revision: D14308888 Pulled By: hermanlee
… while there are active un-acked trxns (facebook#966) (facebook#966) Summary: Jira issue: https://jira.percona.com/browse/FB8-131 Reference Patch: facebook@2d47615 Reference Patch: facebook@d1ea741 Reference Patch: facebook@f5085f4 Reference Patch: facebook@9204c65 Option to shutdown master if semi-sync is being switched off while there are active un-acked trxns Semi-sync master can be switched off manually or because of a timeout while waiting for an ack. This change introduces a new variable rpl_semi_sync_master_crash_if_active_trxs which when set to true will cause the master to shutdown (after printing an error msg) if semi-sync is being switched off while there are active un-acked transactions. This prevents any un-acked trx from committing on the master. Also delete pid file when crashing after timeout with unacked trx. If rpl_semi_sync_master_crash_if_active_trxs = true, the server crashes after a timeout if there are any active unacked transactions. mysqld_safe expects the pid file to be deleted if the expectation is to not bring the intance back up again. Pull Request resolved: facebook#966 Differential Revision: D14308888 Pulled By: hermanlee
… while there are active un-acked trxns (facebook#966) (facebook#966) Summary: Jira issue: https://jira.percona.com/browse/FB8-131 Reference Patch: facebook@2d47615 Reference Patch: facebook@d1ea741 Reference Patch: facebook@f5085f4 Reference Patch: facebook@9204c65 Option to shutdown master if semi-sync is being switched off while there are active un-acked trxns Semi-sync master can be switched off manually or because of a timeout while waiting for an ack. This change introduces a new variable rpl_semi_sync_master_crash_if_active_trxs which when set to true will cause the master to shutdown (after printing an error msg) if semi-sync is being switched off while there are active un-acked transactions. This prevents any un-acked trx from committing on the master. Also delete pid file when crashing after timeout with unacked trx. If rpl_semi_sync_master_crash_if_active_trxs = true, the server crashes after a timeout if there are any active unacked transactions. mysqld_safe expects the pid file to be deleted if the expectation is to not bring the intance back up again. Pull Request resolved: facebook#966 Differential Revision: D14308888 Pulled By: hermanlee
… while there are active un-acked trxns (facebook#966) (facebook#966) Summary: Jira issue: https://jira.percona.com/browse/FB8-131 Reference Patch: facebook@2d47615 Reference Patch: facebook@d1ea741 Reference Patch: facebook@f5085f4 Reference Patch: facebook@9204c65 Option to shutdown master if semi-sync is being switched off while there are active un-acked trxns Semi-sync master can be switched off manually or because of a timeout while waiting for an ack. This change introduces a new variable rpl_semi_sync_master_crash_if_active_trxs which when set to true will cause the master to shutdown (after printing an error msg) if semi-sync is being switched off while there are active un-acked transactions. This prevents any un-acked trx from committing on the master. Also delete pid file when crashing after timeout with unacked trx. If rpl_semi_sync_master_crash_if_active_trxs = true, the server crashes after a timeout if there are any active unacked transactions. mysqld_safe expects the pid file to be deleted if the expectation is to not bring the intance back up again. Pull Request resolved: facebook#966 Differential Revision: D14308888 Pulled By: hermanlee
… while there are active un-acked trxns (facebook#966) (facebook#966) Summary: Jira issue: https://jira.percona.com/browse/FB8-131 Reference Patch: facebook@2d47615 Reference Patch: facebook@d1ea741 Reference Patch: facebook@f5085f4 Reference Patch: facebook@9204c65 Option to shutdown master if semi-sync is being switched off while there are active un-acked trxns Semi-sync master can be switched off manually or because of a timeout while waiting for an ack. This change introduces a new variable rpl_semi_sync_master_crash_if_active_trxs which when set to true will cause the master to shutdown (after printing an error msg) if semi-sync is being switched off while there are active un-acked transactions. This prevents any un-acked trx from committing on the master. Also delete pid file when crashing after timeout with unacked trx. If rpl_semi_sync_master_crash_if_active_trxs = true, the server crashes after a timeout if there are any active unacked transactions. mysqld_safe expects the pid file to be deleted if the expectation is to not bring the intance back up again. Pull Request resolved: facebook#966 Differential Revision: D14308888 Pulled By: hermanlee
… while there are active un-acked trxns (facebook#966) (facebook#966) Summary: Jira issue: https://jira.percona.com/browse/FB8-131 Reference Patch: facebook@2d47615 Reference Patch: facebook@d1ea741 Reference Patch: facebook@f5085f4 Reference Patch: facebook@9204c65 Option to shutdown master if semi-sync is being switched off while there are active un-acked trxns Semi-sync master can be switched off manually or because of a timeout while waiting for an ack. This change introduces a new variable rpl_semi_sync_master_crash_if_active_trxs which when set to true will cause the master to shutdown (after printing an error msg) if semi-sync is being switched off while there are active un-acked transactions. This prevents any un-acked trx from committing on the master. Also delete pid file when crashing after timeout with unacked trx. If rpl_semi_sync_master_crash_if_active_trxs = true, the server crashes after a timeout if there are any active unacked transactions. mysqld_safe expects the pid file to be deleted if the expectation is to not bring the intance back up again. Pull Request resolved: facebook#966 Differential Revision: D14308888 Pulled By: hermanlee
… while there are active un-acked trxns (facebook#966) (facebook#966) Summary: Jira issue: https://jira.percona.com/browse/FB8-131 Reference Patch: facebook@2d47615 Reference Patch: facebook@d1ea741 Reference Patch: facebook@f5085f4 Reference Patch: facebook@9204c65 Option to shutdown master if semi-sync is being switched off while there are active un-acked trxns Semi-sync master can be switched off manually or because of a timeout while waiting for an ack. This change introduces a new variable rpl_semi_sync_master_crash_if_active_trxs which when set to true will cause the master to shutdown (after printing an error msg) if semi-sync is being switched off while there are active un-acked transactions. This prevents any un-acked trx from committing on the master. Also delete pid file when crashing after timeout with unacked trx. If rpl_semi_sync_master_crash_if_active_trxs = true, the server crashes after a timeout if there are any active unacked transactions. mysqld_safe expects the pid file to be deleted if the expectation is to not bring the intance back up again. Pull Request resolved: facebook#966 Differential Revision: D14308888 Pulled By: hermanlee
… while there are active un-acked trxns (facebook#966) (facebook#966) Summary: Jira issue: https://jira.percona.com/browse/FB8-131 Reference Patch: facebook@2d47615 Reference Patch: facebook@d1ea741 Reference Patch: facebook@f5085f4 Reference Patch: facebook@9204c65 Option to shutdown master if semi-sync is being switched off while there are active un-acked trxns Semi-sync master can be switched off manually or because of a timeout while waiting for an ack. This change introduces a new variable rpl_semi_sync_master_crash_if_active_trxs which when set to true will cause the master to shutdown (after printing an error msg) if semi-sync is being switched off while there are active un-acked transactions. This prevents any un-acked trx from committing on the master. Also delete pid file when crashing after timeout with unacked trx. If rpl_semi_sync_master_crash_if_active_trxs = true, the server crashes after a timeout if there are any active unacked transactions. mysqld_safe expects the pid file to be deleted if the expectation is to not bring the intance back up again. Pull Request resolved: facebook#966 Differential Revision: D14308888 Pulled By: hermanlee
… while there are active un-acked trxns (facebook#966) (facebook#966) Summary: Jira issue: https://jira.percona.com/browse/FB8-131 Reference Patch: facebook@2d47615 Reference Patch: facebook@d1ea741 Reference Patch: facebook@f5085f4 Reference Patch: facebook@9204c65 Option to shutdown master if semi-sync is being switched off while there are active un-acked trxns Semi-sync master can be switched off manually or because of a timeout while waiting for an ack. This change introduces a new variable rpl_semi_sync_master_crash_if_active_trxs which when set to true will cause the master to shutdown (after printing an error msg) if semi-sync is being switched off while there are active un-acked transactions. This prevents any un-acked trx from committing on the master. Also delete pid file when crashing after timeout with unacked trx. If rpl_semi_sync_master_crash_if_active_trxs = true, the server crashes after a timeout if there are any active unacked transactions. mysqld_safe expects the pid file to be deleted if the expectation is to not bring the intance back up again. Pull Request resolved: facebook#966 Differential Revision: D14308888 Pulled By: hermanlee
… while there are active un-acked trxns (facebook#966) (facebook#966) Summary: Jira issue: https://jira.percona.com/browse/FB8-131 Reference Patch: facebook@2d47615 Reference Patch: facebook@d1ea741 Reference Patch: facebook@f5085f4 Reference Patch: facebook@9204c65 Option to shutdown master if semi-sync is being switched off while there are active un-acked trxns Semi-sync master can be switched off manually or because of a timeout while waiting for an ack. This change introduces a new variable rpl_semi_sync_master_crash_if_active_trxs which when set to true will cause the master to shutdown (after printing an error msg) if semi-sync is being switched off while there are active un-acked transactions. This prevents any un-acked trx from committing on the master. Also delete pid file when crashing after timeout with unacked trx. If rpl_semi_sync_master_crash_if_active_trxs = true, the server crashes after a timeout if there are any active unacked transactions. mysqld_safe expects the pid file to be deleted if the expectation is to not bring the intance back up again. Pull Request resolved: facebook#966 Differential Revision: D14308888 Pulled By: hermanlee
… while there are active un-acked trxns (facebook#966) (facebook#966) Summary: Jira issue: https://jira.percona.com/browse/FB8-131 Reference Patch: facebook@2d47615 Reference Patch: facebook@d1ea741 Reference Patch: facebook@f5085f4 Reference Patch: facebook@9204c65 Option to shutdown master if semi-sync is being switched off while there are active un-acked trxns Semi-sync master can be switched off manually or because of a timeout while waiting for an ack. This change introduces a new variable rpl_semi_sync_master_crash_if_active_trxs which when set to true will cause the master to shutdown (after printing an error msg) if semi-sync is being switched off while there are active un-acked transactions. This prevents any un-acked trx from committing on the master. Also delete pid file when crashing after timeout with unacked trx. If rpl_semi_sync_master_crash_if_active_trxs = true, the server crashes after a timeout if there are any active unacked transactions. mysqld_safe expects the pid file to be deleted if the expectation is to not bring the intance back up again. Pull Request resolved: facebook#966 Differential Revision: D14308888 Pulled By: hermanlee
… while there are active un-acked trxns (facebook#966) (facebook#966) Summary: Jira issue: https://jira.percona.com/browse/FB8-131 Reference Patch: facebook@2d47615 Reference Patch: facebook@d1ea741 Reference Patch: facebook@f5085f4 Reference Patch: facebook@9204c65 Option to shutdown master if semi-sync is being switched off while there are active un-acked trxns Semi-sync master can be switched off manually or because of a timeout while waiting for an ack. This change introduces a new variable rpl_semi_sync_master_crash_if_active_trxs which when set to true will cause the master to shutdown (after printing an error msg) if semi-sync is being switched off while there are active un-acked transactions. This prevents any un-acked trx from committing on the master. Also delete pid file when crashing after timeout with unacked trx. If rpl_semi_sync_master_crash_if_active_trxs = true, the server crashes after a timeout if there are any active unacked transactions. mysqld_safe expects the pid file to be deleted if the expectation is to not bring the intance back up again. Pull Request resolved: facebook#966 Differential Revision: D14308888 Pulled By: hermanlee
… while there are active un-acked trxns (facebook#966) (facebook#966) Summary: Jira issue: https://jira.percona.com/browse/FB8-131 Reference Patch: facebook@2d47615 Reference Patch: facebook@d1ea741 Reference Patch: facebook@f5085f4 Reference Patch: facebook@9204c65 Option to shutdown master if semi-sync is being switched off while there are active un-acked trxns Semi-sync master can be switched off manually or because of a timeout while waiting for an ack. This change introduces a new variable rpl_semi_sync_master_crash_if_active_trxs which when set to true will cause the master to shutdown (after printing an error msg) if semi-sync is being switched off while there are active un-acked transactions. This prevents any un-acked trx from committing on the master. Also delete pid file when crashing after timeout with unacked trx. If rpl_semi_sync_master_crash_if_active_trxs = true, the server crashes after a timeout if there are any active unacked transactions. mysqld_safe expects the pid file to be deleted if the expectation is to not bring the intance back up again. Pull Request resolved: facebook#966 Differential Revision: D14308888 Pulled By: hermanlee
… while there are active un-acked trxns (facebook#966) (facebook#966) Summary: Jira issue: https://jira.percona.com/browse/FB8-131 Reference Patch: facebook@2d47615 Reference Patch: facebook@d1ea741 Reference Patch: facebook@f5085f4 Reference Patch: facebook@9204c65 Option to shutdown master if semi-sync is being switched off while there are active un-acked trxns Semi-sync master can be switched off manually or because of a timeout while waiting for an ack. This change introduces a new variable rpl_semi_sync_master_crash_if_active_trxs which when set to true will cause the master to shutdown (after printing an error msg) if semi-sync is being switched off while there are active un-acked transactions. This prevents any un-acked trx from committing on the master. Also delete pid file when crashing after timeout with unacked trx. If rpl_semi_sync_master_crash_if_active_trxs = true, the server crashes after a timeout if there are any active unacked transactions. mysqld_safe expects the pid file to be deleted if the expectation is to not bring the intance back up again. Pull Request resolved: facebook#966 Differential Revision: D14308888 Pulled By: hermanlee
… while there are active un-acked trxns (facebook#966) (facebook#966) Summary: Jira issue: https://jira.percona.com/browse/FB8-131 Reference Patch: facebook@2d47615 Reference Patch: facebook@d1ea741 Reference Patch: facebook@f5085f4 Reference Patch: facebook@9204c65 Option to shutdown master if semi-sync is being switched off while there are active un-acked trxns Semi-sync master can be switched off manually or because of a timeout while waiting for an ack. This change introduces a new variable rpl_semi_sync_master_crash_if_active_trxs which when set to true will cause the master to shutdown (after printing an error msg) if semi-sync is being switched off while there are active un-acked transactions. This prevents any un-acked trx from committing on the master. Also delete pid file when crashing after timeout with unacked trx. If rpl_semi_sync_master_crash_if_active_trxs = true, the server crashes after a timeout if there are any active unacked transactions. mysqld_safe expects the pid file to be deleted if the expectation is to not bring the intance back up again. Pull Request resolved: facebook#966 Differential Revision: D14308888 Pulled By: hermanlee
… while there are active un-acked trxns (facebook#966) (facebook#966) Summary: Jira issue: https://jira.percona.com/browse/FB8-131 Reference Patch: facebook@2d47615 Reference Patch: facebook@d1ea741 Reference Patch: facebook@f5085f4 Reference Patch: facebook@9204c65 Option to shutdown master if semi-sync is being switched off while there are active un-acked trxns Semi-sync master can be switched off manually or because of a timeout while waiting for an ack. This change introduces a new variable rpl_semi_sync_master_crash_if_active_trxs which when set to true will cause the master to shutdown (after printing an error msg) if semi-sync is being switched off while there are active un-acked transactions. This prevents any un-acked trx from committing on the master. Also delete pid file when crashing after timeout with unacked trx. If rpl_semi_sync_master_crash_if_active_trxs = true, the server crashes after a timeout if there are any active unacked transactions. mysqld_safe expects the pid file to be deleted if the expectation is to not bring the intance back up again. Pull Request resolved: facebook#966 Differential Revision: D14308888 Pulled By: hermanlee
… while there are active un-acked trxns (facebook#966) (facebook#966) Summary: Jira issue: https://jira.percona.com/browse/FB8-131 Reference Patch: facebook@2d47615 Reference Patch: facebook@d1ea741 Reference Patch: facebook@f5085f4 Reference Patch: facebook@9204c65 Option to shutdown master if semi-sync is being switched off while there are active un-acked trxns Semi-sync master can be switched off manually or because of a timeout while waiting for an ack. This change introduces a new variable rpl_semi_sync_master_crash_if_active_trxs which when set to true will cause the master to shutdown (after printing an error msg) if semi-sync is being switched off while there are active un-acked transactions. This prevents any un-acked trx from committing on the master. Also delete pid file when crashing after timeout with unacked trx. If rpl_semi_sync_master_crash_if_active_trxs = true, the server crashes after a timeout if there are any active unacked transactions. mysqld_safe expects the pid file to be deleted if the expectation is to not bring the intance back up again. Pull Request resolved: facebook#966 Differential Revision: D14308888 Pulled By: hermanlee
… while there are active un-acked trxns (facebook#966) (facebook#966) Summary: Jira issue: https://jira.percona.com/browse/FB8-131 Reference Patch: facebook@2d47615 Reference Patch: facebook@d1ea741 Reference Patch: facebook@f5085f4 Reference Patch: facebook@9204c65 Option to shutdown master if semi-sync is being switched off while there are active un-acked trxns Semi-sync master can be switched off manually or because of a timeout while waiting for an ack. This change introduces a new variable rpl_semi_sync_master_crash_if_active_trxs which when set to true will cause the master to shutdown (after printing an error msg) if semi-sync is being switched off while there are active un-acked transactions. This prevents any un-acked trx from committing on the master. Also delete pid file when crashing after timeout with unacked trx. If rpl_semi_sync_master_crash_if_active_trxs = true, the server crashes after a timeout if there are any active unacked transactions. mysqld_safe expects the pid file to be deleted if the expectation is to not bring the intance back up again. Pull Request resolved: facebook#966 Differential Revision: D14308888 Pulled By: hermanlee
Jira issue: https://jira.percona.com/browse/FB8-131
Reference Patch: 2d47615
Reference Patch: d1ea741
Reference Patch: f5085f4
Reference Patch: 9204c65
---------- 2d47615 ----------
Option to shutdown master if semi-sync is being switched off while there are active un-acked trxns
Summary:
Semi-sync master can be switched off manually or because of a timeout while
waiting for an ack.
This change introduces a new variable rpl_semi_sync_master_crash_if_active_trxs
which when set to true will cause the master to shutdown (after printing an
error msg) if semi-sync is being switched off while there are active un-acked
transactions. This prevents any un-acked trx from committing on the
master.
Originally Reviewed By: hermanlee
fbshipit-source-id: c378441
---------- d1ea741 ----------
Fix test flakiness in rpl.rpl_semi_sync-master_crash_if_active_trxs
Summary:
The test would sometimes fail if the slave's retry count is exhausted
before the master comes up. Set the slave to retry forever instead.
Squash with D5841339
Originally Reviewed By: abhinav04sharma
fbshipit-source-id: c12f822
---------- f5085f4 ----------
Use master_retry_count to fix rpl.rpl_semi_sync_master_crash_if_active_trxs
Summary:
The proper variable to adjust is master_retry_count, not
master_connect_retry.
Squash with D5841339
Originally Reviewed By: abhinav04sharma
fbshipit-source-id: 6938715
---------- 9204c65 ----------
Delete pid file when crashing after timeout with unacked trx
Summary:
If rpl_semi_sync_master_crash_if_active_trxs = true, the server crashes after a
timeout if there are any active unacked transactions. mysqld_safe expects the
pid file to be deleted if the expectation is to not bring the intance back up
again. This change deletes the pid file before crashing on this condition.
Squash with D5841339
Originally Reviewed By: Tema
fbshipit-source-id: a94df24