Skip to content
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

JedisConnectionException if Redis is down #99

Open
carmides opened this issue Aug 14, 2017 · 2 comments
Open

JedisConnectionException if Redis is down #99

carmides opened this issue Aug 14, 2017 · 2 comments

Comments

@carmides
Copy link

I get an exception if Redis is down:
redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
at redis.clients.util.Pool.getResource(Pool.java:42)
at redis.clients.jedis.JedisPool.getResource(JedisPool.java:84)
Caused by: redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException:
Caused by: java.net.ConnectException:

As a result, Tomcat cannot run any application. I've also tested Memcached as session manager and Tomcat keeps up and running even if Memcached is down. I'm not sure if this is the expected behaviour with Redis. How can I configure it to avoid this exception?

Thanks very much

@jcoleman
Copy link
Owner

@carmides What would you expect to happen? If Redis is down then you wouldn't be able to service requests anyway, right? So I'm not sure what behavior you're looking for.

@carmides
Copy link
Author

carmides commented Aug 16, 2017

@jcoleman If I configure Memcached in Tomcat and Memcached is not available, Tomcat keeps running. And when Memcached is up again, it resynchronizes sessions. While Memcached is down, I get exceptions (Socket exceptions like "net.spy.memcached.MemcachedConnection: Reconnecting due to failure to connect ") but applications are able to serve requests properly.

Although Redis performs as a rock solid, I'd like to avoid possible points of failure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants