|
[
Permlink
| « Hide
]
Konstantin Shvachko added a comment - 09/Jul/08 06:43 PM
> May be we should postpone creating the dn block map until the upgrade is done. It is the same thins as with the bscanner, before the upgrade is finished block information might not be correct from the new software point of view.
If FSDataset does not scan the directories, datanode won't know what to upgrade. So some where FSDataset should be able to understand prev layout. For blockScanner I will attach a patch that differs the initialization. Patch for trunk is attached. The fix differs loading block info until the scanner thread is started. If there are any calls to addBlock() or deleteBlock() in between, these are ignored.
I would use blockMap == null instead of new boolean <initialized>.
+1 on the rest. Since you are in this file could you pls "generate serial version ID" for the servlet in order to get rid of the warning.
Eclipse will do it for you. > I would use blockMap == null instead of new boolean <initialized>.
thats right. Updated patch uses "throttler == null" since this condition should be changed only at the end of init(). > "generate serial version ID" for the servlet -1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12385818/HADOOP-3732.patch against trunk revision 677054. +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/2863/testReport/ This message is automatically generated. Integrated in Hadoop-trunk #581 (See http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/581/
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||