Issue Details (XML | Word | Printable)

Key: HADOOP-2831
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Lohit Vijayarenu
Reporter: Tsz Wo (Nicholas), SZE
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Hadoop Common

Remove the deprecated INode.getAbsoluteName()

Created: 14/Feb/08 06:33 PM   Updated: 08/Jul/09 04:42 PM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: 0.17.0

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works HADOOP-2831-1.patch 2008-03-31 08:33 PM Lohit Vijayarenu 3 kB
Text File Licensed for inclusion in ASF works HADOOP-2831-2.patch 2008-03-31 09:19 PM Lohit Vijayarenu 2 kB

Hadoop Flags: Incompatible change
Release Note: Removes deprecated method INode#getAbsoluteName()
Resolution Date: 02/Apr/08 12:44 AM


 Description  « Hide
The deprecated INode.getAbsoluteName() should be removed so that INode.parent could be eliminated later on.

INode.getAbsoluteName() currently is only used in FSImage.writeINodeUnderConstruction(...) . It also introduces unnecessary recursion.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Robert Chansler added a comment - 28/Mar/08 12:07 AM
If deprecated in 0.15, then remove for 0.17.
Otherwise set the fix version for this issue to 0.18.

Lohit Vijayarenu added a comment - 31/Mar/08 08:33 PM
Attaching patch which deprecates the API. There is one another place where this is use in log message. I changed it to use fileName already present instead of absolutePath()

Lohit Vijayarenu added a comment - 31/Mar/08 09:19 PM
was getting rid of wrong getAbsoluteName(). Reverting that. Thanks Nicolas.

Tsz Wo (Nicholas), SZE added a comment - 31/Mar/08 09:25 PM
+1 codes look good.

Hadoop QA added a comment - 31/Mar/08 09:34 PM
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12378977/HADOOP-2831-2.patch
against trunk revision 619744.

@author +1. The patch does not contain any @author tags.

tests included -1. The patch doesn't appear to include any new or modified tests.
Please justify why no tests are needed for this patch.

patch -1. The patch command could not apply the patch.

Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2105/console

This message is automatically generated.


Hadoop QA added a comment - 01/Apr/08 07:26 AM
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12378977/HADOOP-2831-2.patch
against trunk revision 643282.

@author +1. The patch does not contain any @author tags.

tests included -1. The patch doesn't appear to include any new or modified tests.
Please justify why no tests are needed for this patch.

javadoc +1. The javadoc tool did not generate any warning messages.

javac +1. The applied patch does not generate any new javac compiler warnings.

release audit +1. The applied patch does not generate any new release audit warnings.

findbugs +1. The patch does not introduce any new Findbugs warnings.

core tests +1. The patch passed core unit tests.

contrib tests +1. The patch passed contrib unit tests.

Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2107/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2107/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2107/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2107/console

This message is automatically generated.


Lohit Vijayarenu added a comment - 01/Apr/08 07:35 AM
This patch removes deprecated API does so testcases were not included.

Chris Douglas added a comment - 01/Apr/08 10:51 PM
Would it make sense to remove o.a.h.dfs.BlockCrcUpgrade.INodeMapEntry::getAbsoluteName() as well?

Chris Douglas added a comment - 02/Apr/08 12:44 AM
Spoke with Lohit offline, cleared up my confusion.

I just committed this. Thanks, Lohit!


Robert Chansler added a comment - 14/Apr/08 04:30 PM
Noted as incompatible in changes.txt