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


##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/protocol/ScmBlockLocationProtocolServerSideTranslatorPB.java:
##########
@@ -193,6 +194,12 @@ private Status exceptionToResponseStatus(IOException ex) {
   public AllocateScmBlockResponseProto allocateScmBlock(
       AllocateScmBlockRequestProto request, int clientVersion)
       throws IOException {
+    OzoneStoragePolicy storagePolicy;
+    if (request.hasStoragePolicy()) {
+      storagePolicy = OzoneStoragePolicy.fromProto(request.getStoragePolicy());
+    } else {
+      storagePolicy = OzoneStoragePolicy.getDefaultPolicy();
+    }

Review Comment:
   The discrepancy in this section is due to the fact that SPDI-142375 has not 
yet been backported. 
   
   I've completed the code for parameter passing from OM to SCM, which makes 
the logic complete.
   
   This code was moved to a subsequent commit during the migration from version 
1.2 to 1.4. 



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