-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Not A Problem
-
Affects Version/s: 2.6.0
-
Fix Version/s: None
-
Component/s: namenode
-
Labels:
underReplicatedBlocksCount update by the updateState() API.
void updateState() { pendingReplicationBlocksCount = pendingReplications.size(); underReplicatedBlocksCount = neededReplications.size(); corruptReplicaBlocksCount = corruptReplicas.size(); }
but this will not call when NN in safe mode. This is happening because "computeDatanodeWork()" we will return 0 if NN in safe mode
int computeDatanodeWork() { ......... if (namesystem.isInSafeMode()) { return 0; } .................... .................... this.updateState(); .................... .................... }