Bug #84323 | XA-COMMIT may not be blocked by FTWRL | ||
---|---|---|---|
Submitted: | 23 Dec 2016 10:30 | Modified: | 18 Jan 2017 18:50 |
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: | FTWRL, XA-COMMIT |
[23 Dec 2016 10:30]
Wei Zhao
[11 Jan 2017 15:34]
MySQL Verification Team
Hi, Thanks for your report but FTWRL is not compatible with XA transactions. FTWRL with InnoDB does not "lock", it just "prevents commits" best regards Bogdan
[13 Jan 2017 3:45]
Wei Zhao
But the very problem is exactly that FTWRL is unable to block 'xa commit' from committing a transaction branch, if 'xa commit' is executed not in the same user session as the rest of the transaction branch, but later in a new one. And this means that backup tools like percona xtrabackup (and probably also MySQL enterprise backup) won't be able to work correctly after an unexpected mysqld restart(crash, power outage) when there are xa transaction branches prepared via 'xa prepare', but not yet done 'xa commit'. So I do think it is a bug.
[16 Jan 2017 11:28]
MySQL Verification Team
I'll verify this as documentation bug as from documentation is not clear how flush table with read lock "don't work" with innodb and how it's incompatible with XA transactions. kind regards Bogdan
[18 Jan 2017 18:50]
Daniel Price
Posted by developer: The following documentation was updated: http://dev.mysql.com/doc/refman/5.7/en/flush.html http://dev.mysql.com/doc/refman/5.7/en/xa-restrictions.html The changes should appear online soon. Thank you for the bug report.
[18 Jan 2017 19:08]
Daniel Price
Posted by developer: Documentation update: "FLUSH TABLES WITH READ LOCK is not compatible with XA transactions."