[CONJ-888] Fails SSH Tunneling Created: 2021-06-10 Updated: 2021-06-23 Resolved: 2021-06-23 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | protocol |
| Affects Version/s: | 2.7.3 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Björn Raupach | Assignee: | Diego Dupin |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Amazon Aurora MySQL-compatible |
||
| Description |
|
Steps to reproduce: 1) Open a ssh tunnel through a jump (bastion) server. For example: $ ssh -NL 9000:something.something.eu-central-1.rds.amazonaws.com:3306 bastion 2) Open a JDBC Connection with DriverManager and a url of the form: jdbc:mysql://localhost:9000/mydatabase You end up with an exception:
This works if we use mysql-connector-java-5.1.46.jar. |
| Comments |
| Comment by Diego Dupin [ 2021-06-15 ] |
|
Can you confirm this is for aurora ? Pipelining permits having better performance. Best then is to disable all pipelining capability (i.e. adding '&usePipelineAuth=false&useBatchMultiSend=false'). |
| Comment by Björn Raupach [ 2021-06-17 ] |
|
Hi Diego, yes, I can confirm this is for Amazon Aurora MySQL. After I appended the parameters usePipelineAuth=false and useBatchMultiSend=false the SSH tunnel works just fine. Should I close this issue now? Out of curiosity. Why does it work without the two query string parameters if one connects to Aurora from EC2 - within AWS, but not through SSH Port Forwarding (Tunneling)? How is the proxy even able to distinguish the two connections from each other? |
| Comment by Diego Dupin [ 2021-06-23 ] |
|
i'll close the ticket. |