You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Connection pool doesnt reconnect with MySQL after server dies and comes back (only with replication configured) #9541
After the database is restarted, I should not have to restart the api server to issue queries. I would expect the connection pool to self-heal and begin issuing queries again.
What is actually happening?
All subsequent queries after the database comes back up will time out.
Note: This seems to happen ONLY if I have replication configured. If I turn replication off the self-recovery works. Also note that on my local environment, the MASTER and SLAVE configs are the same
Dialect: mysql Dialect version:[email protected] Database version: mariadb 10.2.13 Sequelize version: 4.37.10 Tested with latest release: Yes (4.37.10)
On closer inspection, it looks as though the pool reconnection WORKS if I don't specify the replication object in my configuration and instead just use a single connection. Also, maybe an important detail is that locally my master and my slave are both pointing to the same database.
@knoxcard no its still an issue except it only seems to affect configurations with replication... i'll update the original post to include these details
changed the title [-]Connection pool doesnt reconnect with MySQL after server dies and comes back[/-][+]Connection pool doesnt reconnect with MySQL after server dies and comes back (only with replication configured)[/+]on Jun 18, 2018
Activity
stringbeans commentedon Jun 16, 2018
On closer inspection, it looks as though the pool reconnection WORKS if I don't specify the replication object in my configuration and instead just use a single connection. Also, maybe an important detail is that locally my master and my slave are both pointing to the same database.
knoxcard commentedon Jun 17, 2018
Close ticket?
stringbeans commentedon Jun 17, 2018
@knoxcard no its still an issue except it only seems to affect configurations with replication... i'll update the original post to include these details
[-]Connection pool doesnt reconnect with MySQL after server dies and comes back[/-][+]Connection pool doesnt reconnect with MySQL after server dies and comes back (only with replication configured)[/+]gsogol commentedon Aug 31, 2018
I get the same
fix: replication reconnect after db server failure #9541
sushantdhiman commentedon Oct 28, 2018
Fixed by #10051