[MDEV-5109] SLEEP() inside complex SELECT hangs indefinitely Created: 2013-10-08 Updated: 2013-11-11 Due: 2013-11-08 Resolved: 2013-11-11 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 5.5.33 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Dorian | Assignee: | Elena Stepanova |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Environment: |
VMware Workstation, Fedora Core 19 vanilla install |
||
| Description |
|
The above statement hangs indefinitely instead of 4 seconds like intended.
|
| Comments |
| Comment by Elena Stepanova [ 2013-10-08 ] | ||||||||||||||||
|
Hi, Do you mean that it hangs on an empty table? | ||||||||||||||||
| Comment by Dorian [ 2013-10-08 ] | ||||||||||||||||
|
Hi, I tried both empty and non-empty tables and views. They all hang. I'll run that later tonight, but I'm sure you can also reproduce it. -Dorian Sent from my iPhone | ||||||||||||||||
| Comment by Elena Stepanova [ 2013-10-08 ] | ||||||||||||||||
|
Actually I can't, that's why I'm asking. It looks pretty consistent to me, SELECT on an empty table returns immediately, on a 1-row table it takes 4 sec, on 2-row table it takes 8 sec, etc. MariaDB [test]> select count
----------
---------- MariaDB [test]> SELECT SLEEP(4), ID FROM Region; MariaDB [test]> insert into Region (Name) Values ('Region1'); MariaDB [test]> SELECT SLEEP(4), ID FROM Region;
---------
--------- MariaDB [test]> insert into Region (Name) Values ('Region2'); MariaDB [test]> SELECT SLEEP(4), ID FROM Region;
---------
--------- MariaDB [test]> show create table Region;
-------
------- | ||||||||||||||||
| Comment by Elena Stepanova [ 2013-11-11 ] | ||||||||||||||||
|
Closing for now according to the previous comment. If you have more information, please comment to re-open the bug. |