Bug #84442 | XA PREPARE inconsistent with XTRABACKUP | ||
---|---|---|---|
Submitted: | 9 Jan 2017 5:00 | Modified: | 5 Mar 2018 14:59 |
Reporter: | Wei Zhao (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: XA transactions | Severity: | S2 (Serious) |
Version: | 5.7.16 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | Enterprise Backup, FTWRL, XA PREPARE, XTRABACKUP |
[9 Jan 2017 5:00]
Wei Zhao
[9 Jan 2017 5:01]
Wei Zhao
The patch works for me.
Attachment: xa-prepare-commit-lock.2.diff (application/octet-stream, text), 2.63 KiB.
[9 Jan 2017 7:27]
MySQL Verification Team
Hello David Zhao, Thank you for the report and contribution. Please note that in order to submit contributions you must first sign the Oracle Contribution Agreement (OCA). For additional information please check http://www.oracle.com/technetwork/community/oca-486395.html. If you have any questions, please contact the MySQL community team - http://www.mysql.com/about/contact/?topic=community Thanks, Umesh
[28 Mar 2017 4:59]
MySQL Verification Team
Hello David Zhao, I see you have already created a patch for this, may I request you to please submit your patch as contribution so that it can be used? In order to submit contributions you must first sign the Oracle Contribution Agreement (OCA). For additional information please check http://www.oracle.com/technetwork/community/oca-486395.html. If you have any questions, please contact the MySQL community team. Thanks, Umesh
[13 Apr 2017 16:29]
Paul DuBois
Posted by developer: Noted in 5.7.19, 8.0.2 changelogs. XA PREPARE, XA ROLLBACK, and XA COMMIT for a transaction from a disconnected session did not take a global commit lock and modified the binary log and InnoDB redo log even when FLUSH TABLES WITH READ LOCK was in effect. This could lead to inconsistent backups when backup tools assumed that the server was in a read-only state.
[26 Feb 2018 9:51]
Wei Zhao
I'm opening the bug to add my previous patch as contribution. I didn't have OCA yet in April 2017 and forgot about this bug until now, hopefully I'm not too late.
[26 Feb 2018 9:55]
Wei Zhao
this patch fixes the bug (*) I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.
Contribution: xa-prepare-commit-lock.2.diff (application/octet-stream, text), 2.63 KiB.
[26 Feb 2018 14:25]
Ståle Deraas
Posted by developer: Hi Wei Zhao, the bug is fixed in 5.7.19. But thanks again for the contribution...even if it came too late for us to use it.
[5 Mar 2018 14:59]
MySQL Verification Team
Closing according prior comment from development is already fixed.