Skip to content

Commit 1cd7ae8

Browse files
committed
HDFS-10930.06.patch
1 parent b475444 commit 1cd7ae8

File tree

1 file changed

+3
-1
lines changed
  • hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl

1 file changed

+3
-1
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/BlockPoolSlice.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,9 @@ private long validateIntegrityAndSetLength(File blockFile, long genStamp) {
750750
FsDatasetImpl.LOG.warn(e);
751751
return 0;
752752
} finally {
753-
ris.close();
753+
if (ris != null) {
754+
ris.close();
755+
}
754756
}
755757
}
756758

0 commit comments

Comments
 (0)