HDFS-14263. Remove unnecessary block file exists check from FsDatasetImpl#getBlockInputStream(). Contributed by Surendra Singh Lilhore

(cherry picked from commit 29b411d5f0)
This commit is contained in:
Surendra Singh Lilhore 2019-02-13 23:41:27 +05:30
parent 3bcdff8fac
commit bd9e2826fe
1 changed files with 1 additions and 1 deletions

View File

@ -787,7 +787,7 @@ class FsDatasetImpl implements FsDatasetSpi<FsVolumeImpl> {
datanode.getMetrics().incrRamDiskBlocksReadHits();
}
if(info != null && info.blockDataExists()) {
if (info != null) {
return info.getDataInputStream(seekOffset);
} else {
throw new IOException("No data exists for block " + b);