[MDEV-4471] xa transaction hit the query cache, after xa commit, no result return Created: 2013-05-02 Updated: 2014-01-14 Resolved: 2014-01-14 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.0.2, 5.5.30, 5.1.67, 5.2.14, 5.3.12 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | boyce (Inactive) | Assignee: | Elena Stepanova |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
make sure the query cache is enable
the last select hit the query cache and return no rows, but it may return the value (1,1) |
| Comments |
| Comment by Elena Stepanova [ 2013-05-02 ] |
|
Reproducible on MySQL 5.1 and 5.5, but seems to be fixed in 5.6 and up. MTR test case --source include/have_innodb.inc create table t(id int auto_increment primary key, a int) engine=innodb; --connect (con1,localhost,root,,) --connection default set global query_cache_size = 1024*1024; xa recover; drop table t;
I do not know which exact commit in MySQL 5.6 fixed it. If the fix will be eventually merged into 10.x, I think it makes sense to wait, and have it fixed only in 10.x, since the situation is rather rare and the failure is not particularly dangerous. If it doesn't look like the fix from MySQL could be applied to MariaDB, it might be fixed in 5.5 as well. |
| Comment by boyce (Inactive) [ 2013-05-03 ] |
|
I have debugged the source code of MySQL 5.6.10 and MySQL 5.5.20, the changes in the function row0sel.cc::row_search_check_if_query_cache_permitted may cause the difference between MySQL 5.5 and MySQL 5.6 |
| Comment by Oleksandr Byelkin [ 2013-05-07 ] |
|
as far as it was fixed in 5.6 it will be merged to 10.0.4. |
| Comment by Sergei Golubchik [ 2014-01-14 ] |
|
Elena, could you please test whether it is fixed now? |
| Comment by Elena Stepanova [ 2014-01-14 ] |
|
Fixed in 10.0.4 |