devmadhuu commented on code in PR #10946:
URL: https://github.com/apache/ozone/pull/10946#discussion_r3823027500


##########
hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/scm/protocolPB/ScmBlockLocationProtocolClientSideTranslatorPB.java:
##########
@@ -237,7 +245,9 @@ public List<AllocatedBlock> allocateBlock(
       AllocatedBlock.Builder builder = new AllocatedBlock.Builder()
           .setContainerBlockID(
               ContainerBlockID.getFromProtobuf(resp.getContainerBlockID()))
-          .setPipeline(Pipeline.getFromProtobuf(resp.getPipeline()));
+          .setPipeline(Pipeline.getFromProtobuf(resp.getPipeline()))
+          .setIsFallBack(resp.getIsFallBack())
+          .setStorageTier(StorageTier.fromProto(resp.getStorageTier()));
       blocks.add(builder.build());

Review Comment:
   Its better if we use has check in resp for storageTier at client side also.



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