Bug #62772 operations over SSL fail occasionally with Unsupported record vesion
Submitted: 17 Oct 2011 14:32 Modified: 22 Jan 2012 20:00
Reporter: Gray W Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Server Severity:S2 (Serious)
Version:5.5.9 OS:Linux (CentOS)
Assigned to: CPU Architecture:Any
Tags: SSL

[17 Oct 2011 14:32] Gray W
Description:
We've been struggling with this bug for some time through many MySQL versions.  We have a medium sized distributed system database with some master and slave pairs.  We run SSL connections for most of our database transactions and have seen the following exception every so often.

Caused by: javax.net.ssl.SSLException: Unsupported record version Unknown-0.0
        at com.sun.net.ssl.internal.ssl.InputRecord.readV3Record(InputRecord.java:375)
        at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:360)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:789)
        ...

Full exception will be attached.  This has meant that we cannot run replication over SSL because it fails too often.

I'll start the process to mvoe to 5.5.16 but I don't see anything in the change logs (aside from some client side SSL debugging) that seems helpful.

Thanks.

How to repeat:
This seems to be a classic race condition.  The problem will not present itself except after a large number of iterations.  No idea how to repeat.
[17 Oct 2011 14:35] Gray W
MySQL JDBC exception during show slave status over SSL

Attachment: Mysql Exception.txt (text/plain), 3.68 KiB.

[17 Oct 2011 15:51] Gray W
Changing the synopsis.
[4 Nov 2011 16:17] Gray W
Is no one else getting this issue?  No other comments or help?
[4 Nov 2011 16:30] Valeriy Kravchuk
Loos similar to bug #19705. Please, check. As it may depend on YaSSL version/code used in server, check also with recent 5.5.x versions, 5.5.16+.
[4 Nov 2011 17:39] Gray W
No, it is not related to bug #19705.  I will install the new version as soon as I can but I see nothing in the change-log which makes me hopeful that it is fixed.
[22 Dec 2011 20:00] Sveta Smirnova
Thank you for the feedback.

Please send us server configuration file and output of SHOW GRANTS for user you use in Jave program.
[23 Jan 2012 1: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".