Uploaded image for project: 'Spring Data Redis'
  1. Spring Data Redis
  2. DATAREDIS-840

Stopped Redis server increases RedisMessageListenerContainer shutdown time

    XMLWordPrintable

    Details

      Description

      When attempting to shut down RedisMessageListenerContainer using Lettuce and a Redis server, that is stopped (Redis connection is disconnected), then RedisMessageListenerContainer.stop() fails. This scenario leads to an increased shutdown time in when used within ApplicationContext.

      The shutdown sequence in DefaultLifecycleProcessor is waiting until the full timeout duration for termination ins excedded because RedisMessageListenerContainer never reports a terminated state due to exceptions (either timeout or command rejected) raised by Lettuce.

      We should gracefully catch exceptions to not increase shutdown time of the context.

        Attachments

          Activity

            People

            Assignee:
            mp911de Mark Paluch
            Reporter:
            mp911de Mark Paluch
            Last updater:
            Mark Paluch
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: