-
Notifications
You must be signed in to change notification settings - Fork 192
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
CacheBackend: Redis Exceptions are not catched #341
Comments
@jefftriplett @frankwiles Sorry to bump this issue 🙇 , but could you take a look at it and the referenced PR? |
Oww, I just saw that @violuke mentioned it in his own issue #354. The already existing (and closed as wont-fix) issue #240 somehow slipped by search. This might be not a problem (even if not a really "nice" solution) when used in live/ready/startup probes of K8s - but in my case I also use it in some other parts of the main application to check if certain actions can take place (background migrations etc). I would expect that the health-check would gracefully handle this, as this exception is a sign of "backend not working". Thus, I would like to start the discussion again, if the RedisError could be catched. |
I'll see if I can carve out some time this week. I'm new to the project and trying not to overstep. I think it might be helpful to stage a test so we can address as many concerns as possible. This should be doable with redis. |
I have same problem with Redis CacheBackend |
While using the cache backend health check, I've found that the check itself sometimes raises exceptions which are not catched.
If the redis server itself was not initialized or not reachable, it resulted in the following exception:
This is because
redis.exceptions.ConnectionError
does not subclasses builtinConnectionError
which would be catched within the health-check:https://github.com/redis/redis-py/blob/master/redis/exceptions.py
The health-check should be extended to catch this kind of errors.
Pull-Request: #340
The text was updated successfully, but these errors were encountered: