spring-boot: Health endpoint fails with Spring Session when redis is down
Health endpoint (in my case /manage/health
) fails when I shut down the redis instance with Whitelabel Error Page and exception:
There was an unexpected error (type=Internal Server Error, status=500).
Cannot get Jedis connection; nested exception is redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
When I try to shut down different resources like mongo or postgres, health endpoint correctly report status “DOWN” for them.
Version: Spring IO 2.0.0.RELEASE (Spring boot 1.3.0) - JDK 1.8
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 19 (12 by maintainers)
although it’s closed but excluding redis from management did the job for me
management.health.redis.enabled=false