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 a1890c32c5
)
This commit is contained in:
parent
310245063b
commit
2f854b8386
|
@ -269,9 +269,8 @@ public class FileSystemTimelineWriter extends TimelineWriter{
|
||||||
if (logFDsCache != null) {
|
if (logFDsCache != null) {
|
||||||
LOG.debug("Closing cache");
|
LOG.debug("Closing cache");
|
||||||
logFDsCache.flush();
|
logFDsCache.flush();
|
||||||
logFDsCache.close();
|
|
||||||
logFDsCache = null;
|
|
||||||
}
|
}
|
||||||
|
IOUtils.cleanup(LOG, logFDsCache, fs);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue