集群模式下,底层用的redis.lettuce,主节点挂了之后,从节点选举成主节点,本地拓扑图没有更新,导致连接redis失败
Open
- Dominant language
- Java
- Stars
- 5.6k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
集群模式下,底层用的redis.lettuce,主节点挂了之后,从节点选举成主节点,本地拓扑图没有更新,导致连接redis失败
现在解决方案是采用非spring boot,然后手动创建client。
能否新增拓扑图刷新的功能,给个配置的入口?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing the Spring Boot Redis/Lettuce client setup and how cluster topology is handled after a primary failover. Reproduce the failure with a primary/replica election; done means the local topology refreshes, connections recover, and a configuration entry controls the refresh.
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
- 35/100