Bug #44277 | Abort (Ctrl+C) via mysql client can't free some locks in transaction | ||
---|---|---|---|
Submitted: | 15 Apr 2009 2:56 | Modified: | 15 Apr 2009 10:27 |
Reporter: | rancpine cui | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Locking | Severity: | S2 (Serious) |
Version: | 5.1.32 | OS: | Linux |
Assigned to: | CPU Architecture: | Any | |
Tags: | FREE, lock |
[15 Apr 2009 2:56]
rancpine cui
[15 Apr 2009 4:16]
rancpine cui
May be duplicate with Bug #22876. I just have the following questions: 1. why Ctrl+C & reconnect can't kill the thread 2. It's a little amazing that a thread locks the WHOLE database repeatable at mysql 5.1.22
[15 Apr 2009 6:35]
Sveta Smirnova
Thank you for the report. Nobody promised what just abort of query in mysql command line client would rollback or commit transaction. So I'd say this is not a bug. But in version 6.0 server detects potential deadlock when conn1 issues second insert, so this probably is more what you expect.
[15 Apr 2009 6:59]
rancpine cui
Thank you for your reply. I wonder whether mysql will do an implicit rollback if client lose the connection with mysql server during a transaction. In addition, I still don't think it is reasonable that new connection(Conn 4) is hanged beause of Conn2 when execute just "use test;".
[15 Apr 2009 9:31]
Sveta Smirnova
Thank you for the feedback. Quitting mysql command line client should rollback transaction. But if I understood correctly you don't quit conn1 and conn3.
[15 Apr 2009 9:49]
rancpine cui
Yes. I've only quit Conn2. After that, I create a new connection Conn4 and run: use test; It hangs. In my.cnf, I have: innodb_lock_wait_timeout = 120 It seems that after the query at Conn2 run util 120 seconds,the thread is quit and mysql return to normal state. Thank you for your attention :)
[15 Apr 2009 10:06]
Sveta Smirnova
Thank you for the answer. I can not repeat problem with conn4.
[15 Apr 2009 10:25]
rancpine cui
my.cnf
Attachment: my.txt (text/plain), 20.27 KiB.
[15 Apr 2009 10:27]
rancpine cui
I build mysql 5.1.32 and 5.1.22-debug from source with: ./configure --prefix=/home/work/mysql --with-charset=utf8 --with-extra-charset=utf8 --with-collation=utf8_unicode_ci --enable-local-infile --with-plugins=innobase,myisam,ndbcluster,heap I will try to give a more clear description about the problem. Thank you for your help.