[MDEV-10215] SQL which works with MySQL hangs the system with MariaDB Created: 2016-06-12 Updated: 2016-07-15 Resolved: 2016-07-15 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Manipulation - Subquery |
| Affects Version/s: | 5.5.47-galera |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Bob McMeeking | Assignee: | Unassigned |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | need_feedback | ||
| Description |
|
A simple SQL query which works fine for MySQL (5.0.95) hangs the system for MariaDB. No error message appear and Maria server does not appear to be using CPU cycles. Here is an example of a problem SQL which uses a single table:
The table was originally created using:
The sort of output expected (as from MySQL) is:
|
| Comments |
| Comment by Elena Stepanova [ 2016-06-12 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Please attach your cnf file(s) and paste the output of
If you can provide the full data dump, it will be even better. You can upload it to ftp.askmonty.org/private, only MariaDB developers will have access to it. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2016-06-12 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Reply received by email: Hello Elena I assume the .cnf file in question is /etc/my.cnf. As far as I can see
Further information will follow. Please bear with me. I am not a database expert. I will try to dig out the script that I use to load the table. To
This then hangs with no evidence of any CPU activity. If I edit question to:
I get:
These results are pretty meaningless, but show things can me fudged to work... Here
has been changed to
"num" is a primary key. Is that significant?. Regards Bob | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2016-06-12 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
For config files, please paste or attach not only /etc/my.cnf, but everything it refers to – namely, the contents of /etc/my.cnf.d folder. Please do the same with the queries I asked about above (SHOW TABLE STATUS... etc.). Finally, if you can provide the contents of the table but just don't know how, you can simply run
and then attach or upload the file /tmp/author.sql. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Bob McMeeking [ 2016-06-12 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I hope to be in a position to provide the full contents of the author table sometime tomorrow. In the meantime I have performed further test. It would appear that the search runs very slowly - even when all columns used are indexed (or I believe so!). The problem is size related.JONES has ~16K instances and SMITH ~15K. A search with say INOUE & NASU runs through very fast. SMITH & INOUE is very slow and SMITH & JONES is glacial. But it does get there in the end! Bob | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Bob McMeeking [ 2016-06-13 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The file Please confirm that it has arrived safely! | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Bob McMeeking [ 2016-06-13 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I have uploaded the "SHOW VARIABLES" and "SHOW TABLES" file to the FTP area. These were previous sent as email attachments, but may have been lost due to my use of an inappropriate email address. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2016-06-16 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
BOBRFM, thanks, but there is still no output of
Please paste it. Please also specify how long you had waited till you decided that the query hangs. If you can, run the SELECT which you suspect of hanging in one MySQL session, then connect through another one, wait for a bit (say, a few minutes) and run SHOW PROCESSLIST. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2016-07-15 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Please comment to re-open if you have further information on this issue. |