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

This commit is contained in:
Jason Lowe 2016-07-28 21:47:13 +00:00
parent a3d0cba810
commit a1890c32c5

View File

@ -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