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
Date Thu, 28 Jul 2016 21:48:19 GMT
Repository: hadoop
Updated Branches:
  refs/heads/trunk a3d0cba81 -> a1890c32c


YARN-5438. TimelineClientImpl leaking FileSystem Instances causing Long running services like
HiverServer2 daemon going OOM. Contributed by Rohith Sharma K S


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

Branch: refs/heads/trunk
Commit: a1890c32c52fed69ec09efad0fccf49ed8c2e21e
Parents: a3d0cba
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:47:13 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/a1890c32/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