Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Not A Problem
-
2.6.0
-
None
Description
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(); .................... .................... }