Issue Details (XML | Word | Printable)

Key: HADOOP-3329
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: dhruba borthakur
Reporter: Tsz Wo (Nicholas), SZE
Votes: 0
Watchers: 1
Operations

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

DatanodeDescriptor objects stored in FSImage may be out dated.

Created: 30/Apr/08 07:39 PM   Updated: 08/Jul/09 04:43 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 0.18.0

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works lastBlockLocations.patch 2008-05-06 06:47 AM dhruba borthakur 9 kB
Issue Links:
Reference
 

Hadoop Flags: Reviewed, Incompatible change
Release Note: Changed format of file system image to not store locations of last block.
Resolution Date: 09/May/08 09:40 PM


 Description  « Hide
INodeFileUnderConstruction.targets is a DatanodeDescriptor array which stores the locations for last block. These DatanodeDescriptors are serialized and stored in the FSImage. However, a DatanodeDescriptor contains information like IP address and ports. These information may be out dated after a datanode restart.

We should probably only stored the storageID of a DatanodeDescriptor in FSImage and then lookup the DatanodeDescriptor object from the datanodeMap.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
dhruba borthakur added a comment - 06/May/08 06:08 AM
I think it is worthwhile to not store the DatanodeDescriptor in the fsimage at all. The "append" code needs the location of the last block of the file to do lease recovery. In the case when the namenode restarts and before it does lease recovery, it will get the block locations of the last block from datanodes as part of block reports.

dhruba borthakur added a comment - 06/May/08 06:47 AM
This patch removes the last block locations that were earlier stored in each persistent lease record.

Hadoop QA added a comment - 06/May/08 03:41 PM
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12381486/lastBlockLocations.patch
against trunk revision 653749.

+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.
Please justify why no tests are needed for this patch.

+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/2411/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2411/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2411/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2411/console

This message is automatically generated.


Tsz Wo (Nicholas), SZE added a comment - 06/May/08 05:43 PM
+1 codes look good

dhruba borthakur added a comment - 09/May/08 09:39 PM
I just committed this.

Hudson added a comment - 10/May/08 12:24 PM