Class BlockECReconstructionCommand
java.lang.Object
org.apache.hadoop.hdfs.server.protocol.ServerCommand
org.apache.hadoop.hdfs.server.protocol.DatanodeCommand
org.apache.hadoop.hdfs.server.protocol.BlockECReconstructionCommand
A BlockECReconstructionCommand is an instruction to a DataNode to
reconstruct a striped block group with missing blocks.
Upon receiving this command, the DataNode pulls data from other DataNodes
hosting blocks in this group and reconstructs the lost blocks through codec
calculation.
After the reconstruction, the DataNode pushes the reconstructed blocks to
their final destinations if necessary (e.g., the destination is different
from the reconstruction node, or multiple blocks in a group are to be
reconstructed).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBlock and targets pair -
Constructor Summary
ConstructorsConstructorDescriptionBlockECReconstructionCommand(int action, Collection<BlockECReconstructionCommand.BlockECReconstructionInfo> blockECReconstructionInfoList) Create BlockECReconstructionCommand from a collection ofBlockECReconstructionCommand.BlockECReconstructionInfo, each representing a reconstruction task -
Method Summary
Methods inherited from class org.apache.hadoop.hdfs.server.protocol.ServerCommand
getAction
-
Constructor Details
-
BlockECReconstructionCommand
public BlockECReconstructionCommand(int action, Collection<BlockECReconstructionCommand.BlockECReconstructionInfo> blockECReconstructionInfoList) Create BlockECReconstructionCommand from a collection ofBlockECReconstructionCommand.BlockECReconstructionInfo, each representing a reconstruction task
-
-
Method Details
-
toString
- Overrides:
toStringin classServerCommand
-
getECTasks
-