Removed Methods |
long getChannelPosition(Block, BlockWriteStreams)
|
Returns the current offset in the data stream. |
void setChannelPosition(Block, BlockWriteStreams, long, long)
|
Sets the file pointer of the data stream and checksum stream to the specified values. |
void updateBlock(Block, Block)
|
Update the block to the new generation stamp and length. |
void validateBlockMetadata(Block )
|
Validate that the contents in the Block matches the file on disk. |
BlockWriteStreams writeToBlock(Block, boolean)
|
Creates the block and returns output streams to write data and CRC |
Added Methods |
void adjustCrcChannelPosition(Block, BlockWriteStreams, int)
|
Sets the file pointer of the checksum stream so that the last checksum will be overwritten |
ReplicaInPipelineInterface append(Block, long, long)
|
Append to a finalized replica and returns the meta info of the replica |
ReplicaInPipelineInterface createRbw(Block )
|
Creates a RBW replica and returns the meta info of the replica |
ReplicaInPipelineInterface createTemporary(Block )
|
Creates a temporary replica and returns the meta information of the replica |
Replica getReplica(long )
|
Get reference to the replica meta info in the replicasMap. |
long getReplicaVisibleLength(Block )
|
Get visible length of the specified replica. |
boolean hasEnoughResource()
|
checks how many valid storage volumes are there in the DataNode |
ReplicaRecoveryInfo initReplicaRecovery(RecoveringBlock )
|
Initialize a replica recovery. |
ReplicaInPipelineInterface recoverAppend(Block, long, long)
|
Recover a failed append to a finalized replica and returns the meta info of the replica |
void recoverClose(Block, long, long)
|
Recover a failed pipeline close It bumps the replica's generation stamp and finalize it if RBW replica |
ReplicaInPipelineInterface recoverRbw(Block, long, long, long)
|
Recovers a RBW replica and returns the meta info of the replica |
ReplicaInfo updateReplicaUnderRecovery(Block, long, long)
|
Update replica's generation stamp and length and finalize it. |