From 8a5a6aa307f1f8ea03d39b31659b43c421f33c93 Mon Sep 17 00:00:00 2001 From: "zbq.dean" Date: Sat, 7 Sep 2019 17:58:46 +0800 Subject: [PATCH] HBASE-22890 Verify the file integrity in persistent IOEngine --- .../org/apache/hadoop/hbase/io/hfile/bucket/FileIOEngine.java | 1 + 1 file changed, 1 insertion(+) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/bucket/FileIOEngine.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/bucket/FileIOEngine.java index e9e5fef15438..4dbcbf293d19 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/bucket/FileIOEngine.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/bucket/FileIOEngine.java @@ -363,6 +363,7 @@ public byte[] calculateChecksum() for (String filePath : filePaths){ File file = new File(filePath); if (file.exists()){ + sb.append(filePath); sb.append(getFileSize(filePath)); sb.append(file.lastModified()); } else {