From 0a9646dbf4fd0045b8212d4638061dfa693b95c0 Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Thu, 15 Jun 2017 13:33:36 +0200 Subject: [PATCH] Reduce Lettuce shutdown timeout to 100ms Reducing the default to 100ms is a good compromise to retain a quiet time in for parallel execution and optimize for default, single-threaded execution (such as test execution or regular application shutdown). The shutdown timeout can be adjusted to fit specific application needs. See gh-9526 --- .../boot/autoconfigure/data/redis/RedisProperties.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/data/redis/RedisProperties.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/data/redis/RedisProperties.java index f9b34bbb15..b84279353a 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/data/redis/RedisProperties.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/data/redis/RedisProperties.java @@ -316,7 +316,7 @@ public class RedisProperties { /** * Shutdown timeout in milliseconds. */ - private int shutdownTimeout = 2000; + private int shutdownTimeout = 100; /** * Lettuce pool configuration.