Skip to content

StreamMessageListenerContainer stops consuming messages after connection timeout to Redis #2833

Open
@radjavi

Description

@radjavi

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

  1. Create a message listener using this guide (with a StreamMessageListenerContainer).
  2. Publish an event (to make sure the message is successfully received).
  3. Restart the Redis instance (to simulate a connection timeout)
  4. Publish an event (should not be received)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions