Gargi-jais11 commented on code in PR #9783:
URL: https://github.com/apache/ozone/pull/9783#discussion_r2820684400


##########
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/util/PayloadUtils.java:
##########
@@ -52,7 +51,9 @@ public static byte[] generatePayload(int payloadSizeBytes) {
   }
 
   public static com.google.protobuf.ByteString generatePayloadProto2(int 
payloadSizeBytes) {
-    return ProtoUtils.unsafeByteString(generatePayload(payloadSizeBytes));
+    byte[] payload = generatePayload(payloadSizeBytes);
+    return payload.length > 0 ? 
com.google.protobuf.UnsafeByteOperations.unsafeWrap(payload)
+        : com.google.protobuf.ByteString.EMPTY;

Review Comment:
   Okay Thanks @adoroszlai for pointing out this. Missed that there are others 
with same name.



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