hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jl...@apache.org
Subject hadoop git commit: YARN-5438. TimelineClientImpl leaking FileSystem Instances causing Long running services like HiverServer2 daemon going OOM. Contributed by Rohith Sharma K S (cherry picked from commit a1890c32c52fed69ec09efad0fccf49ed8c2e21e)
Date Thu, 28 Jul 2016 21:49:46 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2.8 08358c8d4 -> 95fb2fe39


YARN-5438. TimelineClientImpl leaking FileSystem Instances causing Long running services like
HiverServer2 daemon going OOM. Contributed by Rohith Sharma K S
(cherry picked from commit a1890c32c52fed69ec09efad0fccf49ed8c2e21e)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/95fb2fe3
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/95fb2fe3
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/95fb2fe3

Branch: refs/heads/branch-2.8
Commit: 95fb2fe3942178eb67c271b53af79912c19eda2e
Parents: 08358c8
Author: Jason Lowe <jlowe@apache.org>
Authored: Thu Jul 28 21:47:13 2016 +0000
Committer: Jason Lowe <jlowe@apache.org>
Committed: Thu Jul 28 21:49:21 2016 +0000

----------------------------------------------------------------------
 .../hadoop/yarn/client/api/impl/FileSystemTimelineWriter.java     | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/95fb2fe3/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/client/api/impl/FileSystemTimelineWriter.java
----------------------------------------------------------------------
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/client/api/impl/FileSystemTimelineWriter.java
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/client/api/impl/FileSystemTimelineWriter.java
index 3fa8691..55d6bd2 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/client/api/impl/FileSystemTimelineWriter.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/client/api/impl/FileSystemTimelineWriter.java
@@ -269,9 +269,8 @@ public class FileSystemTimelineWriter extends TimelineWriter{
     if (logFDsCache != null) {
       LOG.debug("Closing cache");
       logFDsCache.flush();
-      logFDsCache.close();
-      logFDsCache = null;
     }
+    IOUtils.cleanup(LOG, logFDsCache, fs);
   }
 
   @Override


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message