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:
parent
3bcdff8fac
commit
bd9e2826fe
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue