From 198fb58776ec02397af5ad83259535b0291b745c Mon Sep 17 00:00:00 2001 From: Vinod Kumar Vavilapalli Date: Sat, 15 Nov 2014 12:05:25 -0800 Subject: [PATCH] YARN-1703. Fixed ResourceManager web-proxy to close connections correctly. Contributed by Rohith Sharma. --- hadoop-yarn-project/CHANGES.txt | 3 +++ .../apache/hadoop/yarn/server/webproxy/WebAppProxyServlet.java | 1 + 2 files changed, 4 insertions(+) diff --git a/hadoop-yarn-project/CHANGES.txt b/hadoop-yarn-project/CHANGES.txt index 9d3179b31eb..b303e53607f 100644 --- a/hadoop-yarn-project/CHANGES.txt +++ b/hadoop-yarn-project/CHANGES.txt @@ -96,6 +96,9 @@ Release 2.7.0 - UNRELEASED YARN-2432. RMStateStore should process the pending events before close. (Varun Saxena via jianhe) + YARN-1703. Fixed ResourceManager web-proxy to close connections correctly. + (Rohith Sharma via vinodkv) + Release 2.6.0 - 2014-11-18 INCOMPATIBLE CHANGES diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-web-proxy/src/main/java/org/apache/hadoop/yarn/server/webproxy/WebAppProxyServlet.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-web-proxy/src/main/java/org/apache/hadoop/yarn/server/webproxy/WebAppProxyServlet.java index 19ae9dc08df..31457a548da 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-web-proxy/src/main/java/org/apache/hadoop/yarn/server/webproxy/WebAppProxyServlet.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-web-proxy/src/main/java/org/apache/hadoop/yarn/server/webproxy/WebAppProxyServlet.java @@ -166,6 +166,7 @@ public class WebAppProxyServlet extends HttpServlet { } config.setLocalAddress(localAddress); HttpMethod method = new GetMethod(uri.getEscapedURI()); + method.setRequestHeader("Connection","close"); @SuppressWarnings("unchecked") Enumeration names = req.getHeaderNames(); while(names.hasMoreElements()) {