Bug #76156 | Python Connector hangs if a query is killed (error 1317) | ||
---|---|---|---|
Submitted: | 4 Mar 2015 22:29 | Modified: | 30 Jun 2015 18:43 |
Reporter: | Trevor Carlson | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / Python | Severity: | S3 (Non-critical) |
Version: | 2.0.3 | OS: | Windows |
Assigned to: | CPU Architecture: | Any |
[4 Mar 2015 22:29]
Trevor Carlson
[5 Mar 2015 11:51]
MySQL Verification Team
Hello Trevor Carlson, Thank you for the report. Thanks, Umesh
[12 Mar 2015 17:39]
Trevor Carlson
A related problem. Even after adjusting the code to catch 1317 errors, the connection ends up broken. Repro: conn = mysql.connector.connect() cursor = conn.cursor() try: cursor.execute("SELECT * from huge_table") cursor.fetchall() except Exception as e: print e finally: cursor.close() conn.close() This needs modified code to catch 1317 errors and throw an exception. The query needs to be killed while running. An exception will be raised on the "cursor.close()" line: "Unread result found.".
[12 May 2015 3:14]
Ricardo Oliveira
this is a nasty bug, can someone change this to critical please
[30 Jun 2015 18:43]
Paul DuBois
Noted in 2.1.3 changelog. Connector/Python hung until timeout if the query it was running was killed.