当redis某个节点发生故障无法连接,导致项目无法启动
- Dominant language
- Java
- Stars
- 5.6k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
如异常,Redis无法创建连接,会导致整个项目无法启动,有什么办法可以避免?
ERROR [restartedMain] org.springframework.boot.SpringApplication [856] -| Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'redisLettuceAutoInit' defined in class path resource [com/alicp/jetcache/autoconfigure/RedisLettuceAutoConfiguration.class]: Invocation of init method failed; nested exception is io.lettuce.core.RedisConnectionException: Unable to establish a connection to Redis Cluster
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with RedisLettuceAutoConfiguration.class and the redisLettuceAutoInit bean named in the stack trace. Reproduce startup while a Redis Cluster node is unavailable, then determine the expected startup behavior and identify or add coverage for that behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, redis, spring-boot
- Domain
- backend, databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100