anoopsjohn commented on a change in pull request #626: HBASE-23017 Verify the 
file integrity in persistent IOEngine
URL: https://github.com/apache/hbase/pull/626#discussion_r329010132
 
 

 ##########
 File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/bucket/BucketCache.java
 ##########
 @@ -238,6 +239,17 @@
   /** In-memory bucket size */
   private float memoryFactor;
 
+  private static final String FILE_VERIFY_ALGORITHM =
+    "hbase.bucketcache.persistent.file.integrity.check.algorithm";
+  private static final String DEFAULT_FILE_VERIFY_ALGORITHM = "MD5";
+
+  /**
+   * Use {@link java.security.MessageDigest} class's encryption algorithms to 
check
+   * persistent file integrity, default algorithm is MD5
+   * */
+  private String algorithm;
+  private byte[] checksum;
 
 Review comment:
   Why to keep this as state in BC?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to