Bug #61747 | Communications link failure with mysql from JDBC | ||
---|---|---|---|
Submitted: | 5 Jul 2011 8:35 | Modified: | 26 Apr 2013 7:01 |
Reporter: | terry whelan | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | Connector / J | Severity: | S2 (Serious) |
Version: | 5.0 | OS: | Solaris (solaris10 update 8) |
Assigned to: | Alexander Soklakov | CPU Architecture: | Any |
[5 Jul 2011 8:35]
terry whelan
[5 Jul 2011 9:40]
Tonci Grgin
Terry, you've given me nothing to work with... My best guess is that you're closing the connection from the different thread than the one issuing "SHOW TABLES". Further more, I do not know which version of c/J you are using, nor do I see a repeatable test case (with connection string and all) attached, much like in report you're referring to.
[13 Jul 2011 6:44]
terry whelan
This issue is random and I do not have a reproducible test case However - I would like help to diagnose *where* the error is .. and how I can ensure I have an appropriate logging setup in case of future occurance Is this an error in Java or Mysql i.e. where exactly in the stack does the error come from??? If this is a mysql error .. then what logfile would be most appropriate to query? How can I maximise MYSQL logging to ensure I get as much information from log files if this occurs again?
[13 Jul 2011 6:51]
Tonci Grgin
Terry, again, all I can do is guess. 1st guess was you closed the connection from one thread while still working with it in another. Thread-safe does not mean "sharable across threads" nor does it shield from such coding practices. 2nd guess would be MySQL server restarted. You can check for 1st in your code (sharing connection between threads) and for 2nd in \\DATADIR\your_server_name.err file. It could also be a fail-over problem, maybe even something caused by network hardware/software failure and so on... Side-note: If I can not reliable reproduce the problem I have nothing to "fix", agree?
[13 Aug 2011 23:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
[26 Apr 2013 7:01]
Alexander Soklakov
There is no feedback since Jul 2011 and I close this report as "Can't repeat". Please, feel free to reopen it if the problem still exists and you can provide more info to analyze.