HDFS-15734. [READ] DirectoryScanner#scan need not check StorageType.PROVIDED (#2559)
Co-authored-by: wangyuxuan <wangyuxuan@xiaomi.com> (cherry picked from commit1e32ab7d2f
) (cherry picked from commit52a46f064a
) Conflicts: hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DirectoryScanner.java (cherry picked from commitfe822b525e
)
This commit is contained in:
parent
cab9172d2e
commit
09bbbc8b86
|
@ -441,8 +441,7 @@ public class DirectoryScanner implements Runnable {
|
|||
}
|
||||
// Block file and/or metadata file exists on the disk
|
||||
// Block exists in memory
|
||||
if (info.getVolume().getStorageType() != StorageType.PROVIDED &&
|
||||
info.getBlockFile() == null) {
|
||||
if (info.getBlockFile() == null) {
|
||||
// Block metadata file exits and block file is missing
|
||||
addDifference(diffRecord, statsRecord, info);
|
||||
} else if (info.getGenStamp() != memBlock.getGenerationStamp()
|
||||
|
|
Loading…
Reference in New Issue