[CONJ-690] MariaDbPoolDataSource's initiailzation freezes for 2 minutes with aurora Created: 2019-03-05 Updated: 2019-03-13 Resolved: 2019-03-13 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | aurora |
| Affects Version/s: | 2.4.0 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Francesco Vasco | Assignee: | Diego Dupin |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
AWS Java 8 Lambda
|
||
| Description |
|
I use a MariaDbPoolDataSource connected to Aurora Mysql. I use the url `jdbc:mysql:aurora://my.cluster-xxxxxxxx.us-east-1.rds.amazonaws.com/dbuseLegacyDatetimeCode=false&serverTimezone=GMT`, `minPoolSize=1` and `maxPoolSize = 8`. In AWS Java 8 lambda sometimes the pool initialization freezes. "nettyCallPool-4-1 @call-handler#3" #14 prio=10 os_prio=0 tid=0x00007f1bb8088800 nid=0x72c0 runnable [0x00007f1bdcaf8000]
After two minutes I get the pool working without exception. This behavior fits really bad in a Lambda. |
| Comments |
| Comment by Francesco Vasco [ 2019-03-06 ] |
|
This issue looks related to an high active connection count on Aurora master. |
| Comment by Diego Dupin [ 2019-03-08 ] |
|
This is a strange error, related to aurora : This means that socket to server is created, but server never send any bytes on socket. If there was a socket error, that connector would have thrown an exception. Here socket is alright, but server doesn't respect protocol. I cannot say anything but ask for amazon aurora support about that... |
| Comment by Francesco Vasco [ 2019-03-08 ] |
|
Thank you for response, this issue is related to MySql max_connection limit, so we have solved raising this value. |
| Comment by Diego Dupin [ 2019-03-08 ] |
|
Ok nice, because 'normal' MySQL or MariaDB servers then throw an error. |