From 193c7259f6ce3155f8a38343be3976ee22763f43 Mon Sep 17 00:00:00 2001 From: Jae Hyeon Bae Date: Wed, 9 Jul 2014 15:52:17 -0700 Subject: [PATCH] refresh thread should be daemon --- .../io/druid/storage/s3/FileSessionCredentialsProvider.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {