numLive); if (isDecommission && numExpected > numLive) { if (bc.isUnderConstruction() && block.equals(bc.getLastBlock())) {
if(commitBlock == null) return false; // not committing, this is a block allocation retry BlockInfo lastBlock = bc.getLastBlock(); if(lastBlock == null) return false; // no blocks in file yet
BlockInfo lastBlock = bc.getLastBlock(); if (lastBlock == null || bc.getPreferredBlockSize() == lastBlock.getNumBytes() - bytesToRemove) {
numLive); if (numExpected > numLive) { if (bc.isUnderConstruction() && block.equals(bc.getLastBlock())) {
if(commitBlock == null) return false; // not committing, this is a block allocation retry BlockInfoContiguous lastBlock = bc.getLastBlock(); if(lastBlock == null) return false; // no blocks in file yet
if(commitBlock == null) return false; // not committing, this is a block allocation retry BlockInfoContiguous lastBlock = bc.getLastBlock(); if(lastBlock == null) return false; // no blocks in file yet
if(bc == null || (bc.isUnderConstruction() && block.equals(bc.getLastBlock()))) { if(bc == null || (bc.isUnderConstruction() && block.equals(bc.getLastBlock()))) {
numLive); if (numExpected > numLive) { if (bc.isUnderConstruction() && block.equals(bc.getLastBlock())) {
if(bc == null || (bc.isUnderConstruction() && block.equals(bc.getLastBlock()))) { if(bc == null || (bc.isUnderConstruction() && block.equals(bc.getLastBlock()))) {
BlockInfoContiguous oldBlock = bc.getLastBlock(); if(oldBlock == null || bc.getPreferredBlockSize() == oldBlock.getNumBytes() - bytesToRemove)
BlockInfoContiguous oldBlock = bc.getLastBlock(); if(oldBlock == null || bc.getPreferredBlockSize() == oldBlock.getNumBytes() - bytesToRemove)