diff --git a/s3-extensions/src/main/java/io/druid/storage/s3/FileSessionCredentialsProvider.java b/s3-extensions/src/main/java/io/druid/storage/s3/FileSessionCredentialsProvider.java index dcaa404286a..dbb1a288407 100644 --- a/s3-extensions/src/main/java/io/druid/storage/s3/FileSessionCredentialsProvider.java +++ b/s3-extensions/src/main/java/io/druid/storage/s3/FileSessionCredentialsProvider.java @@ -41,7 +41,8 @@ public class FileSessionCredentialsProvider implements AWSCredentialsProvider { private volatile String secretKey; private final ScheduledExecutorService scheduler = Executors.newSingleThreadScheduledExecutor( - new ThreadFactoryBuilder().setNameFormat("FileSessionCredentialsProviderRefresh-%d").build() + new ThreadFactoryBuilder().setNameFormat("FileSessionCredentialsProviderRefresh-%d") + .setDaemon(true).build() ); public FileSessionCredentialsProvider(String sessionCredentials) {