[MDEV-4498] Out-of-Memory errors when planning query with ISNULL in predicates Created: 2013-05-08 Updated: 2013-05-08 Resolved: 2013-05-08 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.0.2, 5.5.30 |
| Fix Version/s: | 10.0.3, 5.5.31, 5.3.13 |
| Type: | Bug | Priority: | Major |
| Reporter: | Ryan Southwell | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | optimizer | ||
| Environment: |
Windows Server 2008 x64 |
||
| Attachments: |
|
| Description |
|
I believe there is an issue with the query optimizer in MariaDB v5.5.30 and v10. Zip file contains SQL dump of test database structure and data as well as a SQL file of the offending query (copied below). I can replicate this issue on MariaDB v5.5.30 and v10. I CANNOT replicate this error on MariaDB v5.5.29 nor MySQL. I cannot be certain but based on the commit descriptions, it may be related to 2502.567.70, 2502.567.71, or 2502.567.72. When the ISNULL() expression is present in the query below, mysqld seizes 100% of available physical memory and continues to allocate further until all available virtual memory is consumed as well, thereby hanging the machine:
|
| Comments |
| Comment by Elena Stepanova [ 2013-05-08 ] |
|
Thanks for the report. The bug was fixed along with revno: 3655 It has already been merged into maria/5.5 tree as revno 3746. The fix will appear in the upcoming 5.5.31 release and will be later merged into maria/10.0 and released with 10.0.3 as well. |
| Comment by Ryan Southwell [ 2013-05-08 ] |
|
Excellent, thanks for the quick work! g |