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

FB8-131: Option to shutdown master if semi-sync is being switched off while there are active un-acked trxns #966

Closed
wants to merge 1 commit into from

Conversation

inikep
Copy link
Contributor

@inikep inikep commented Feb 21, 2019

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

@inikep inikep force-pushed the FB8-131 branch 3 times, most recently from c4d2a3c to 55ed55b Compare February 25, 2019 12:38
@inikep
Copy link
Contributor Author

inikep commented Feb 25, 2019

PR was updated according to comments

@inikep
Copy link
Contributor Author

inikep commented Feb 26, 2019

PR was updated

Copy link
Contributor

@percona-ysorokin percona-ysorokin left a 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

@inikep inikep force-pushed the FB8-131 branch 2 times, most recently from afa0d77 to 1c762d0 Compare March 1, 2019 14:59
… 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
@inikep inikep changed the title WIP FB8-131: Option to shutdown master if semi-sync is being switched off while there are active un-acked trxns FB8-131: Option to shutdown master if semi-sync is being switched off while there are active un-acked trxns Mar 4, 2019
Copy link

@facebook-github-bot facebook-github-bot left a 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.

facebook-github-bot pushed a commit that referenced this pull request Mar 8, 2019
… 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
@hermanlee hermanlee closed this Mar 8, 2019
facebook-github-bot pushed a commit that referenced this pull request Nov 18, 2019
… 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
@inikep inikep deleted the FB8-131 branch January 7, 2020 10:30
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Jul 21, 2020
… 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
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Jul 28, 2020
… 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
hermanlee pushed a commit to hermanlee/mysql-5.6 that referenced this pull request Oct 3, 2023
… 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
hermanlee pushed a commit to hermanlee/mysql-5.6 that referenced this pull request Oct 18, 2023
… 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
inikep pushed a commit to inikep/percona-server that referenced this pull request Apr 15, 2024
… 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
inikep pushed a commit to inikep/percona-server that referenced this pull request Apr 16, 2024
… 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
inikep pushed a commit to inikep/percona-server that referenced this pull request Apr 17, 2024
… 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
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Apr 23, 2024
… 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
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Apr 25, 2024
… 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
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request May 7, 2024
… 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
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request May 8, 2024
… 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
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request May 9, 2024
… 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
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request May 10, 2024
… 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
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request May 13, 2024
… 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
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request May 15, 2024
… 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
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request May 16, 2024
… 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
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request May 17, 2024
… 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
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request May 21, 2024
… 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
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request May 21, 2024
… 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
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request May 30, 2024
… 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
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Jun 13, 2024
… 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
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Jun 14, 2024
… 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
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Jun 19, 2024
… 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
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Jun 20, 2024
… 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
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Jun 21, 2024
… 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
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Jun 25, 2024
… 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
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Jul 2, 2024
… 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
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Jul 19, 2024
… 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
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Jul 19, 2024
… 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
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Jul 31, 2024
… 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
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Aug 2, 2024
… 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
inikep pushed a commit to inikep/mysql-5.6 that referenced this pull request Aug 6, 2024
… 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants