HDFS-14263. Remove unnecessary block file exists check from FsDatasetImpl#getBlockInp...
authorSurendra Singh Lilhore <surendralilhore@apache.org>
Wed, 13 Feb 2019 18:11:27 +0000 (23:41 +0530)
committerSurendra Singh Lilhore <surendralilhore@apache.org>
Wed, 13 Feb 2019 18:11:27 +0000 (23:41 +0530)
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/FsDatasetImpl.java

index 027a0bf..ad43b45 100644 (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);