-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Latest version of Redis won't automatically reconnect without error handling #8705
Comments
Thanks for opening this issue!
|
🎉 This change has been released in version 6.3.0-alpha.8 |
🎉 This change has been released in version 6.4.0-beta.1 |
🎉 This change has been released in version 6.4.0-alpha.1 |
🎉 This change has been released in version 6.4.0 |
@Vortec4800 Did this change definitely fix the issue for you? I've just tried upgrading to Parse Server 6.4.0 and it still happens for me. ![]() Here's my dependencies:
This only happens when it is running on Heroku. Seems to work fine when I run I am running the sever locally (macOS). It seems somewhat strange that it worked fine on parse 5.5.4 |
Not completely fixed, see #9571 |
New Issue Checklist
Issue Description
I'm using a Redis Server hosted by Digital Ocean, and it disconnects every so often for whatever reason. With Redis 3.x this wasn't a big deal, the client would automatically reconnect. With Redis 4.x, you get an error in the console that complains about the lack of error handling.
It appears that added (even empty) event handlers during client creation is enough to bring back the behavior of Redis 3. I will create a PR with this change for reference.
Environment
Server
6.2.1
Ubuntu 20 LTS
Digital Ocean
Logs
Before PR change:
(Redis client does not reconnect after this message appears in the console, later errors show client is closed when the cache attempts to be used)
PR change adds the following handlers:
After PR change:
On initial launch, showing client creation and connection:
When a disconnect happens:
Future disconnects repeat the same message, showing the connection gets closed but then reopens and everything continues to work normally.
The text was updated successfully, but these errors were encountered: