From f6ae596d1e8b2d7bb68f5633c09228a872e11d4e Mon Sep 17 00:00:00 2001 From: Suresh Srinivas Date: Mon, 7 Jan 2013 14:33:52 +0000 Subject: [PATCH] HADOOP-9181. Set daemon flag for HttpServer's QueuedThreadPool. Contributed by Liang Xie. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1429810 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-common-project/hadoop-common/CHANGES.txt | 3 +++ .../src/main/java/org/apache/hadoop/http/HttpServer.java | 1 + 2 files changed, 4 insertions(+) diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 9ed38421a0a..e08e597a5ec 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -519,6 +519,9 @@ Release 2.0.3-alpha - Unreleased HADOOP-9153. Support createNonRecursive in ViewFileSystem. (Sandy Ryza via tomwhite) + HADOOP-9181. Set daemon flag for HttpServer's QueuedThreadPool. + (Liang Xie via suresh) + Release 2.0.2-alpha - 2012-09-07 INCOMPATIBLE CHANGES diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/http/HttpServer.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/http/HttpServer.java index ea768ab75a6..c14ea99a88a 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/http/HttpServer.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/http/HttpServer.java @@ -245,6 +245,7 @@ public class HttpServer implements FilterContainer { // default value (currently 250). QueuedThreadPool threadPool = maxThreads == -1 ? new QueuedThreadPool() : new QueuedThreadPool(maxThreads); + threadPool.setDaemon(true); webServer.setThreadPool(threadPool); final String appDir = getWebAppsPath(name);