-
Type:
Improvement
-
Status: Closed
-
Priority:
Minor
-
Resolution: Complete
-
Affects Version/s: 2.0.7 (Kay SR7), 2.1 M3 (Lovelace)
-
Fix Version/s: 1.8.13 (Ingalls SR13), 2.0.8 (Kay SR8), 2.1 RC1 (Lovelace)
-
Component/s: Lettuce Driver
-
Labels:None
-
Pull Request URL:
-
Sprint:Lovelace RC1
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.