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 e6943a7de8a5..e0dfb7f79be2 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 @@ -371,7 +371,7 @@ public byte[] calculateChecksum() } } MessageDigest messageDigest = MessageDigest.getInstance(algorithmName); - messageDigest.update(sb.toString().getBytes()); + messageDigest.update(Bytes.toBytes(sb.toString())); return messageDigest.digest(); }