[CONJ-529] retriesAllDown not working as expected Created: 2017-09-25 Updated: 2017-12-08 Resolved: 2017-12-08 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | Failover |
| Affects Version/s: | 2.1.1 |
| Fix Version/s: | 2.2.1, 1.7.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Hautot | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
We changed the connector to use the mariadb one (latest version). And so instead of "maxReconnects" we use "retriesAllDown" option in the connection string. In the code I see:
So I would think that between 2 connection tries (try the whole list of master/slaves) it would wait for ¼ seconds but looking at the code in I see no sleep and I have put some logs and I noticed that the connector tried to connect almost 1 million times in +/- 70 seconds (the time for mariadb container to start, load data and restart). I think a quick fix would be to put a sleep 250ms at the end of the while loop to match what's in the above comment. |
| Comments |
| Comment by Diego Dupin [ 2017-12-08 ] | |||||||||||||||
|
available through snapshot :
|