Cherry-pick backport of 9ed8d60511
This commit is contained in:
parent
d58f9d438f
commit
1d226874d2
|
@ -1172,6 +1172,7 @@ public class DatanodeManager {
|
|||
DatanodeDescriptor nodeN = host2DatanodeMap.getDatanodeByXferAddr(
|
||||
nodeReg.getIpAddr(), nodeReg.getXferPort());
|
||||
|
||||
// Non-change. REMOVE. Number 2
|
||||
if (nodeN != null && nodeN != nodeS) {
|
||||
NameNode.LOG.info("BLOCK* registerDatanode: " + nodeN);
|
||||
// nodeN previously served a different data storage,
|
||||
|
@ -1200,7 +1201,7 @@ public class DatanodeManager {
|
|||
nodes with its data cleared (or user can just remove the StorageID
|
||||
value in "VERSION" file under the data directory of the datanode,
|
||||
but this is might not work if VERSION file format has changed
|
||||
*/
|
||||
*/
|
||||
NameNode.stateChangeLog.info("BLOCK* registerDatanode: " + nodeS
|
||||
+ " is replaced by " + nodeReg + " with the same storageID "
|
||||
+ nodeReg.getDatanodeUuid());
|
||||
|
|
Loading…
Reference in New Issue