Bug #44626 Tables are reopened multiple times if used in same query, buffers allocated too
| Submitted: | 3 May 2009 10:24 | ||
|---|---|---|---|
| Reporter: | Domas Mituzas | Email Updates: | |
| Status: | Verified | Impact on me: | |
| Category: | MySQL Server: General | Severity: | S3 (Non-critical) |
| Version: | 5.0, 5.1 | OS: | Any |
| Assigned to: | CPU Architecture: | Any |
[3 May 2009 10:24]
Domas Mituzas
[15 Jul 2010 13:27]
Shane Bester
Here's a testcase for the abuse of file descriptors when too many unions are allowed. related: bug #50674 --------- drop table if exists t1; create table t1(a blob)engine=myisam; insert into t1 values ('a'); set @b='select a from t1'; set @a='explain extended '; set @a=concat(@a,repeat(concat(@b,' union '),2100)); set @a=concat(@a,@b); prepare stmt from @a; execute stmt; deallocate prepare stmt; --------- on a server started with --open-files-limit=2048, it will consume all the available fd's, thus causing a major outage for all users. mysql> prepare stmt from @a; ERROR 23 (HY000): Out of resources when opening file '.\test\t1.MYD' (Errcode: 24)
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.053 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.