|
[
Permlink
| « Hide
]
Tsz Wo (Nicholas), SZE added a comment - 13/May/08 09:04 PM
The INode.parent reference is actually not necessary and waste space. It would be good if we can remove it.
> The INode.parent reference is actually not necessary and waste space. It would be good if we can remove it.
This is related but different issue. I am planning a patch that is suitable for 0.16 and up. Even I thought parent link was removed earlier (to save memory). Note that parent is not the only culprit. the links to children also have the similar negative effects. We already iterate over all the files below a directory when it is deleted, so clearing a few more references will be a straight fwd fix. Attached patch removes the links. Manually verified that even when we revert the fix for
Renamed collectSubtreeBlocks() to collectSubtreeBlocksAndClear() to reflect the change in functionality. Suggestion for better name is welcome. This is not a functionality change, rather minimizing effect of memory leaks. I don't think it needs a test case.
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12382217/HADOOP-3381.patch against trunk revision 656939. +1 @author. The patch does not contain any @author tags. -1 tests included. The patch doesn't appear to include any new or modified tests. +1 javadoc. The javadoc tool did not generate any warning messages. +1 javac. The applied patch does not increase the total number of javac compiler warnings. +1 findbugs. The patch does not introduce any new Findbugs warnings. +1 release audit. The applied patch does not increase the total number of release audit warnings. +1 core tests. The patch passed core unit tests. +1 contrib tests. The patch passed contrib unit tests. Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2494/testReport/ This message is automatically generated. Integrated in Hadoop-trunk #499 (See http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/499/
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||