-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(redis): fix master failure crashing the server #258
Conversation
DEV-2002 (BUG) Redis connection don`t recover after master switching in Redis Sentinel (botpress/borpress botpress/v12#1549)
Describe the bug Error after shutting down the current Master (tested using docker):
Here Botpress is able to recover after the master switch to one of the slaves, but only after automatically restarting the server, this seems to be related to an Unhandled Exception. To Reproduce
Example config: Master Name: mymaster Slave1 Port: 7021 Sentinel1 Port: 26379 -e REDIS_URL=undefined Expected behavior Environment (please complete the following information):
Additional context |
@samuelmasse Can you please give me the steps required to reproduce the issue so I can test it on my end! |
There was a problem when using redis with sentinel, master and slaves where switching a master could make the server crash. The server was set to throw an exception is an attempt to connect failed more than 10 times. I removed this limit so now the server can retry to connect to redis indefinitely.
Closes DEV-2002