-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Not working as expected in rainy days #2237
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
Comments
summary of error:
|
* handle errors in reconnect strategy * add test * fix retries typo * fix #2237 - flush queues on reconnect strategy error * Update socket.ts * Update socket.ts
* handle errors in reconnect strategy * add test * fix retries typo * fix redis#2237 - flush queues on reconnect strategy error * Update socket.ts * Update socket.ts
Hi @leibale , For testing, I was using redis-mock library, but because of the braking changes in version 4.x the library is no longer usable, I have opened an issue on it but I see repository is not maintained :-(. |
From a few seconds the server goes down as in a container, then tried to downgrade to previous versions within 4.+ because of the same local error not 4.0.0 is only stable without errors in version 3.1.2. |
@idaamit If you're running Docker https://www.npmjs.com/package/testcontainers might be worth a try since then you could also use a proper |
On redis connection failure, I do not get exception.
I have upgraded to redis 4.2.0 with the following lambda :
The problem is : If I succeed to connect to redis, but before lrage redis stops (redis connection fail Socket closed unexpectedly) redis client reconnects for 3 times as written in reconnectStrategy, and after the 3 re-connects, the code stops and do not get to the catch section, ending the lambda as successfully finished.
How can I get to the exception section in this scenario ?
In redis 3.1.X, in similar case lambda finished with exception.
Environment:
The text was updated successfully, but these errors were encountered: