adoroszlai commented on a change in pull request #1085:
URL: https://github.com/apache/hadoop-ozone/pull/1085#discussion_r441528090



##########
File path: 
hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/ratis/ContainerCommandRequestMessage.java
##########
@@ -61,9 +61,11 @@ public static ContainerCommandRequestMessage toMessage(
   public static ContainerCommandRequestProto toProto(
       ByteString bytes, RaftGroupId groupId)
       throws InvalidProtocolBufferException {
-    final int i = 4 + bytes.asReadOnlyByteBuffer().getInt();
+    final int i = 4 + bytes.substring(0, Integer.BYTES)

Review comment:
       ```suggestion
       final int i = Integer.BYTES + bytes.substring(0, Integer.BYTES)
   ```




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



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

Reply via email to