jojochuang commented on code in PR #3201:
URL: https://github.com/apache/ozone/pull/3201#discussion_r871902921


##########
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/protocolPB/OMPBHelper.java:
##########
@@ -196,6 +216,165 @@ public static HddsProtos.DefaultReplicationConfig convert(
     return builder.build();
   }
 
+  public static FileChecksum convert(FileChecksumProto proto) {
+    if (proto == null) {
+      return null;
+    }
+    try {
+      switch (proto.getChecksumType()) {
+      case MD5CRC:
+        if (proto.hasMd5Crc()) {
+          return convertMD5MD5FileChecksum(proto.getMd5Crc());
+        } else {
+          LOG.warn("The field md5Crc is not set.");

Review Comment:
   make sense. will update



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to