Bug #60427 | Deadlock in case exception was thrown during isValid check | ||
---|---|---|---|
Submitted: | 11 Mar 2011 3:56 | Modified: | 25 Mar 2013 13:28 |
Reporter: | Niv Dalal | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | Connector / J | Severity: | S1 (Critical) |
Version: | 5.1.13 | OS: | Any |
Assigned to: | Alexander Soklakov | CPU Architecture: | Any |
Tags: | isValid deadlock jdbc |
[11 Mar 2011 3:56]
Niv Dalal
[27 Jul 2011 18:43]
Sveta Smirnova
Thank you for the report. I can not repeat described behavior using generic test which calls isValid concurrently. Please provide example of how you use isValid or, better, standalone test case which we can repeat in our environment.
[27 Jul 2011 18:55]
Niv Dalal
Hi I've provided in the original case a stack trace that is relevant for the case. I believe it happened during disconnection from the database. You can just see the bug from reviewing the code, no need for a real test. Anyway as this is a timing issue, I'm not sure it will be easy to reproduce as it is a timing issue, but it is easy to understand why it happens from code review. Thank you, Niv
[25 Mar 2013 13:28]
Alexander Soklakov
Hi Niv, As for the latest Connector/J (5.1.24) synchronization model was significantly refactored, parts of code where you have a deadlock now have common synchronization mutex. So, please, use the latest driver. I close the bug report as "Can't repeat". Feel free to reopen it if you find the issue still exists.