| Package | Description |
|---|---|
| org.apache.hadoop.hdfs.server.datanode | |
| org.apache.hadoop.hdfs.server.datanode.fsdataset | |
| org.apache.hadoop.hdfs.server.datanode.fsdataset.impl |
| Modifier and Type | Class | Description |
|---|---|---|
class |
FinalizedProvidedReplica |
This class is used for provided replicas that are finalized.
|
class |
FinalizedReplica |
This class describes a replica that has been finalized.
|
class |
LocalReplica |
This class is used for all replicas which are on local storage media
and hence, are backed by files.
|
class |
LocalReplicaInPipeline |
This class defines a replica in a pipeline, which
includes a persistent replica being written to by a dfs client or
a temporary replica being replicated by a source datanode or
being copied for the balancing purpose.
|
class |
ProvidedReplica |
This abstract class is used as a base class for provided replicas.
|
class |
ReplicaBeingWritten |
This class represents replicas being written.
|
class |
ReplicaUnderRecovery |
This class represents replicas that are under block recovery
It has a recovery id that is equal to the generation stamp
that the replica will be bumped to after recovery
The recovery id is used to handle multiple concurrent block recoveries.
|
class |
ReplicaWaitingToBeRecovered |
This class represents a replica that is waiting to be recovered.
|
| Modifier and Type | Method | Description |
|---|---|---|
ReplicaInfo |
ReplicaBuilder.build() |
|
ReplicaInfo |
FinalizedProvidedReplica.getOriginalReplica() |
|
ReplicaInfo |
FinalizedReplica.getOriginalReplica() |
|
ReplicaInfo |
LocalReplicaInPipeline.getOriginalReplica() |
|
abstract ReplicaInfo |
ReplicaInfo.getOriginalReplica() |
|
ReplicaInfo |
ReplicaUnderRecovery.getOriginalReplica() |
Get the original replica that's under recovery
|
ReplicaInfo |
ReplicaWaitingToBeRecovered.getOriginalReplica() |
|
ReplicaInfo |
LocalReplicaInPipeline.getReplicaInfo() |
|
ReplicaInfo |
ReplicaInPipeline.getReplicaInfo() |
| Modifier and Type | Method | Description |
|---|---|---|
ReplicaBuilder |
ReplicaBuilder.from(ReplicaInfo fromReplica) |
|
java.lang.String |
BlockPoolSliceStorage.getTrashDirectory(ReplicaInfo info) |
Get a target subdirectory under trash/ for a given block file that is being
deleted.
|
java.lang.String |
DataStorage.getTrashDirectoryForReplica(java.lang.String bpid,
ReplicaInfo info) |
If rolling upgrades are in progress then do not delete block files
immediately.
|
void |
LocalReplicaInPipeline.moveReplicaFrom(ReplicaInfo oldReplicaInfo,
java.io.File newBlkFile) |
| Constructor | Description |
|---|---|
ReplicaUnderRecovery(ReplicaInfo replica,
long recoveryId) |
| Modifier and Type | Method | Description |
|---|---|---|
ReplicaInfo |
FsDatasetSpi.moveBlockAcrossStorage(org.apache.hadoop.hdfs.protocol.ExtendedBlock block,
org.apache.hadoop.fs.StorageType targetStorageType,
java.lang.String storageId) |
Move block from one storage to another storage
|
ReplicaInfo |
FsDatasetSpi.moveBlockAcrossVolumes(org.apache.hadoop.hdfs.protocol.ExtendedBlock block,
FsVolumeSpi destination) |
Moves a given block from one volume to another volume.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<ReplicaInfo> |
FsDatasetSpi.getFinalizedBlocks(java.lang.String bpid) |
Gets a list of references to the finalized blocks for the given block pool.
|
| Modifier and Type | Method | Description |
|---|---|---|
ReplicaInfo |
FsVolumeImpl.activateSavedReplica(java.lang.String bpid,
ReplicaInfo replicaInfo,
org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.RamDiskReplicaTracker.RamDiskReplica replicaState) |
|
ReplicaInfo |
FsVolumeImpl.hardLinkBlockToTmpLocation(org.apache.hadoop.hdfs.protocol.ExtendedBlock block,
ReplicaInfo replicaInfo) |
|
ReplicaInfo |
FsVolumeImpl.moveBlockToTmpLocation(org.apache.hadoop.hdfs.protocol.ExtendedBlock block,
ReplicaInfo replicaInfo,
int smallBufferSize,
org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method | Description |
|---|---|---|
ReplicaInfo |
FsVolumeImpl.activateSavedReplica(java.lang.String bpid,
ReplicaInfo replicaInfo,
org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.RamDiskReplicaTracker.RamDiskReplica replicaState) |
|
ReplicaInPipeline |
FsVolumeImpl.append(java.lang.String bpid,
ReplicaInfo replicaInfo,
long newGS,
long estimateBlockLen) |
|
ReplicaInPipeline |
FsVolumeImpl.convertTemporaryToRbw(org.apache.hadoop.hdfs.protocol.ExtendedBlock b,
ReplicaInfo temp) |
|
java.io.File[] |
FsVolumeImpl.copyBlockToLazyPersistLocation(java.lang.String bpId,
long blockId,
long genStamp,
ReplicaInfo replicaInfo,
int smallBufferSize,
org.apache.hadoop.conf.Configuration conf) |
|
ReplicaInfo |
FsVolumeImpl.hardLinkBlockToTmpLocation(org.apache.hadoop.hdfs.protocol.ExtendedBlock block,
ReplicaInfo replicaInfo) |
|
ReplicaInfo |
FsVolumeImpl.moveBlockToTmpLocation(org.apache.hadoop.hdfs.protocol.ExtendedBlock block,
ReplicaInfo replicaInfo,
int smallBufferSize,
org.apache.hadoop.conf.Configuration conf) |
|
void |
FsVolumeImpl.resolveDuplicateReplicas(java.lang.String bpid,
ReplicaInfo memBlockInfo,
ReplicaInfo diskBlockInfo,
org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.ReplicaMap volumeMap) |
|
ReplicaInPipeline |
FsVolumeImpl.updateRURCopyOnTruncate(ReplicaInfo rur,
java.lang.String bpid,
long newBlockId,
long recoveryId,
long newlength) |
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.