[MDEV-5323] Ctrl-C not working under Ubuntu Created: 2013-11-20 Updated: 2014-01-30 Resolved: 2013-12-12 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 5.1.67, 5.2.14, 5.3.12, 5.5.34, 10.0.6 |
| Fix Version/s: | 5.5.35, 10.0.7 |
| Type: | Bug | Priority: | Minor |
| Reporter: | vsespb | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | client | ||
| Environment: |
Ubuntu 12.04 |
||
| Attachments: |
|
| Description |
|
If I run mysql client, run lang query (like select * from table) and press Ctrl-C - nothing happens, I have to wait till query finish (even several minutes). Tried in different virtual terminals. Mysqlclient worked fine, before I upgraded to mariadb.
|
| Comments |
| Comment by vsespb [ 2013-11-21 ] | |||||||||||||||
|
same in
| |||||||||||||||
| Comment by Elena Stepanova [ 2013-11-28 ] | |||||||||||||||
|
Works all right for me: MariaDB [db]> insert into t1 select * from t1; MariaDB [db]> select * from t1; elenst@ubuntu12-04:~$ which mysql elenst@ubuntu12-04:~$ dpkg -l mariadb-client-core-5.5 Please attach your cnf files and provide the table definition (show create table), the number of rows in the table and the real query, I will give it another try with the additional data. | |||||||||||||||
| Comment by vsespb [ 2013-11-29 ] | |||||||||||||||
|
attaching configs ( /etc/mysql ) | |||||||||||||||
| Comment by vsespb [ 2013-11-29 ] | |||||||||||||||
|
| |||||||||||||||
| Comment by vsespb [ 2013-11-30 ] | |||||||||||||||
|
some more info: same effect if I open another terminal and run kill -s INT 24350 during query execution: query not terminated, next query terminated. so it's not related to keyboard, GUI, terminals etc. something with signal handler. 2) 3) issue persists after reboot. | |||||||||||||||
| Comment by Elena Stepanova [ 2013-12-02 ] | |||||||||||||||
|
I think I figured the missing point. There are two important stages of executing a query, easily distinguishable on the client side: When you are saying that Ctrl-C does not work, do you mean the second stage, when the result set rows already started appearing in the client? | |||||||||||||||
| Comment by vsespb [ 2013-12-02 ] | |||||||||||||||
|
> 2) the server is returning result set, the client starts printing it. | |||||||||||||||
| Comment by Elena Stepanova [ 2013-12-02 ] | |||||||||||||||
|
The difference between MariaDB and MySQL behavior is visible on the following conditions:
MySQL client aborts the output immediately, saying
^C| 42 | The next query fails with The next query works as usual. MariaDB client does not do anything until the query is finished:
------ The next query fails with The next query works as usual. MySQL behavior is better in comparison, I would also want to be able to interrupt the undesirable output. | |||||||||||||||
| Comment by Daniel Bartholomew [ 2014-01-29 ] | |||||||||||||||
|
http://bazaar.launchpad.net/~maria-captains/maria/5.5/revision/3999 | |||||||||||||||
| Comment by vsespb [ 2014-01-30 ] | |||||||||||||||
|
main issue seems fixed in 5.5.35+maria-1~precise after query terminated with Ctrl-C, next query is failed.
|