/** * Process the recorded replicas. When about to commit or finish the * pipeline recovery sort out bad replicas. * @param genStamp The final generation stamp for the block. * @return staleReplica's List. */ public List<ReplicaUnderConstruction> setGenerationStampAndVerifyReplicas( long genStamp) { Preconditions.checkState(uc != null && !isComplete()); // Set the generation stamp for the block. setGenerationStamp(genStamp); return uc.getStaleReplicas(genStamp); }
storedBlock.setGenerationStamp(newgenerationstamp); storedBlock.setNumBytes(newlength);
blockManager.isLegacyBlock(lastBlock)); if(copyOnTruncate) { lastBlock.setGenerationStamp(blockRecoveryId); } else if(truncateRecovery) { recoveryBlock.setGenerationStamp(blockRecoveryId);
boolean changeMade = oldBlock.getGenerationStamp() != newBlock.getGenerationStamp(); oldBlock.setGenerationStamp(newBlock.getGenerationStamp());
oldBlock.getReplication())); uc.getTruncateBlock().setNumBytes(oldBlock.getNumBytes() - lastBlockDelta); uc.getTruncateBlock().setGenerationStamp(newBlock.getGenerationStamp()); truncatedBlockUC = oldBlock;