Bug #89076 | Application has timeout exception,Still find queries getting executed on backend | ||
---|---|---|---|
Submitted: | 29 Dec 2017 7:39 | Modified: | 22 Jan 2018 5:33 |
Reporter: | Chaitanya Tondlekar | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | Connector / NET | Severity: | S1 (Critical) |
Version: | 5.7.19 | OS: | Linux (AWS RDS) |
Assigned to: | CPU Architecture: | Any | |
Tags: | Application timeout, Execution Timeout . |
[29 Dec 2017 7:39]
Chaitanya Tondlekar
[29 Dec 2017 11:21]
Chiranjeevi Battula
Hello Chaitanya, Thank you for the bug report and test case. Verified this behavior on Visual Studio 2015 with Connector/NET 6.10.5 version. Thanks, Chiranjeevi.
[29 Dec 2017 11:22]
Chiranjeevi Battula
Screenshot
Attachment: Bug_89076.png (image/png, text), 138.07 KiB.
[29 Dec 2017 11:22]
Chiranjeevi Battula
Screenshot
Attachment: Bug_89076_1.png (image/png, text), 89.90 KiB.
[22 Jan 2018 5:33]
Chaitanya Tondlekar
Hello Chiranjeevi Battula, Is there any to any alternate solution/way to mitigate the above issue? If yes, kindly help us on the same.
[11 Jan 2021 9:56]
Liviu Chircu
I am having a similar problem using the C driver (libmysqlclient). I can reproduce the issue 100%, by using a 2-second MYSQL_OPT_READ_TIMEOUT on the following query: "INSERT INTO tb VALUES(1, 1, SLEEP(2))" I am using auto-commit. The query fails due to time out, however it is still executed on the backend! This causes issues on the application side, as it then retries the query and gets a "duplicate PRIMARY KEY" error 1062. Is there any way to fix this without switching to transactions? "BEGIN TRANSACTION", ..., "COMMIT". Thank you!