int numCurrentReplica = countLiveNodes(storedBlock); if (storedBlock.getBlockUCState() == BlockUCState.COMMITTED && hasMinStorage(storedBlock, numCurrentReplica)) {
int numCurrentReplica = countLiveNodes(storedBlock); if (storedBlock.getBlockUCState() == BlockUCState.COMMITTED && numCurrentReplica >= minReplication) {
int numCurrentReplica = countLiveNodes(storedBlock); if (storedBlock.getBlockUCState() == BlockUCState.COMMITTED && numCurrentReplica >= minReplication) {
BlockInfoContiguous bi = bm.getStoredBlock(newBlock.getLocalBlock()); assertFalse(bm.isNeededReplication(bi, oldLoactedBlock.getLocations().length, bm.countLiveNodes(bi))); } finally { IOUtils.closeStream(out);