예제 #1
0
 /**
  * Stop decommissioning the specified datanode.
  *
  * @param node
  */
 @VisibleForTesting
 public void stopDecommission(DatanodeDescriptor node) {
   if (node.isDecommissionInProgress() || node.isDecommissioned()) {
     // Update DN stats maintained by HeartbeatManager
     hbManager.stopDecommission(node);
     // Over-replicated blocks will be detected and processed when
     // the dead node comes back and send in its full block report.
     if (node.isAlive) {
       blockManager.processOverReplicatedBlocksOnReCommission(node);
     }
     // Remove from tracking in DecommissionManager
     pendingNodes.remove(node);
     decomNodeBlocks.remove(node);
   } else {
     LOG.trace("stopDecommission: Node {} in {}, nothing to do." + node, node.getAdminState());
   }
 }