code: int getNumReplicas(Block block) {
      synchronized (pendingReplications) {
        PendingBlockInfo found = pendingReplications.get(block);
        if (found != null) {
          return found.getNumReplicas();
        }
      }
      return 0;
    }
docs: How many copies of this block is pending replication?