HDFS-11074. Remove unused method FsDatasetSpi#getFinalizedBlocksOnPersistentStorage. Contributed by Hanisha Koneru.
This commit is contained in:
parent
b8ae7a8ee4
commit
f0a6d17e3b
|
@ -242,9 +242,6 @@ public interface FsDatasetSpi<V extends FsVolumeSpi> extends FSDatasetMBean {
|
||||||
*/
|
*/
|
||||||
List<FinalizedReplica> getFinalizedBlocks(String bpid);
|
List<FinalizedReplica> getFinalizedBlocks(String bpid);
|
||||||
|
|
||||||
/** @return a list of finalized blocks for the given block pool. */
|
|
||||||
List<FinalizedReplica> getFinalizedBlocksOnPersistentStorage(String bpid);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check whether the in-memory block record matches the block on the disk,
|
* Check whether the in-memory block record matches the block on the disk,
|
||||||
* and, in case that they are not matched, update the record or mark it
|
* and, in case that they are not matched, update the record or mark it
|
||||||
|
|
|
@ -1863,25 +1863,6 @@ class FsDatasetImpl implements FsDatasetSpi<FsVolumeImpl> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the list of finalized blocks from in-memory blockmap for a block pool.
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public List<FinalizedReplica>
|
|
||||||
getFinalizedBlocksOnPersistentStorage(String bpid) {
|
|
||||||
try(AutoCloseableLock lock = datasetLock.acquire()) {
|
|
||||||
ArrayList<FinalizedReplica> finalized =
|
|
||||||
new ArrayList<FinalizedReplica>(volumeMap.size(bpid));
|
|
||||||
for (ReplicaInfo b : volumeMap.replicas(bpid)) {
|
|
||||||
if (!b.getVolume().isTransientStorage() &&
|
|
||||||
b.getState() == ReplicaState.FINALIZED) {
|
|
||||||
finalized.add(new FinalizedReplica((FinalizedReplica) b));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return finalized;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a block is valid.
|
* Check if a block is valid.
|
||||||
*
|
*
|
||||||
|
|
|
@ -1311,11 +1311,6 @@ public class SimulatedFSDataset implements FsDatasetSpi<FsVolumeSpi> {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public List<FinalizedReplica> getFinalizedBlocksOnPersistentStorage(String bpid) {
|
|
||||||
throw new UnsupportedOperationException();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map<String, Object> getVolumeInfoMap() {
|
public Map<String, Object> getVolumeInfoMap() {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
|
|
|
@ -92,11 +92,6 @@ public class ExternalDatasetImpl implements FsDatasetSpi<ExternalVolumeImpl> {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public List<FinalizedReplica> getFinalizedBlocksOnPersistentStorage(String bpid) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void checkAndUpdate(String bpid, long blockId, File diskFile,
|
public void checkAndUpdate(String bpid, long blockId, File diskFile,
|
||||||
File diskMetaFile, FsVolumeSpi vol) {
|
File diskMetaFile, FsVolumeSpi vol) {
|
||||||
|
|
Loading…
Reference in New Issue