spring-projects / spring-projects/spring-data-redis
`StreamMessageListenerContainer` stops consuming messages after connection timeout to Redis
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.9k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
Problem
I have been following this guide for implementing asynchronous message listeners for Redis streams. The listeners work as expected at first. However, if a temporary connection timeout occurs towards Redis (e.g. Redis becomes unavailable), the listeners stop consuming messages indefinitely (even though Redis is available).
How to reproduce
- Create a message listener using this guide (with a
StreamMessageListenerContainer). - Publish an event (to make sure the message is successfully received).
- Restart the Redis instance (to simulate a connection timeout)
- Publish an event (should not be received)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Redis Streams listener-container guide and reproduce the failure using StreamMessageListenerContainer: receive a message, restart Redis, then publish another message. Trace what happens after the temporary connection timeout and verify that listeners resume consuming messages once Redis is available again.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, redis, spring
- Domain
- backend, databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100