Please sign in to comment.
HDFS: Fix DFSClient's memory leak on OutputStreams hold by FileChecker
Summary: Currently, OutputStreams are not guaranteed to be removed from DFSClient.filechecker, if OutStream.close() fails. So if clients give it up after the close() failure (which is the recommandation), the OutputStream object is leaked to FileChecker.pendingCreates forever. This patch tries to fix the issue by always removing files from filechecker when OutputStream.close() is called. Also, the file is removed from the map when recoverLease() is called Test Plan: ant test Reviewers: hkuang, tomasz, weiyan Reviewed By: hkuang Task ID: 1862779
- Loading branch information...
Showing with 29 additions and 17 deletions.