Bug #73577 changeUser() call with useCompression=true could lead to IO freeze
Submitted: 14 Aug 2014 8:06 Modified: 9 Sep 2014 2:05
Reporter: Alexander Soklakov Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / J Severity:S3 (Non-critical)
Version:5.1.31 OS:Any
Assigned to: Alexander Soklakov CPU Architecture:Any

[14 Aug 2014 8:06] Alexander Soklakov
Description:
mysqlInput was twice wrapped into CompressedInputStream in case of changeUser(), which ends with bad recursion and io freeze.

How to repeat:
Not possible without fixing Bug#19354014

Suggested fix:
This bug was found during analysis of Bug#19354014, the fix will be included to that patch.
[9 Sep 2014 2:05] Daniel So
Posted by developer:
 
Added the following entry to the Connector/J 5.1.33 changelog:

"changeUser() calls might result in a connection exception (“Got packets out of order”) or a freeze if the useCompression option was set to true."