You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2021/07/14 07:30:20 UTC

[GitHub] [ozone] ChenSammi commented on a change in pull request #2354: HDDS-5337. Apply container space check to Ratis factor one pipelines

ChenSammi commented on a change in pull request #2354:
URL: https://github.com/apache/ozone/pull/2354#discussion_r669362019



##########
File path: hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/SCMCommonPlacementPolicy.java
##########
@@ -196,7 +200,7 @@ public boolean hasEnoughSpace(DatanodeDetails datanodeDetails,
 
     for (MetadataStorageReportProto reportProto
         : datanodeInfo.getMetadataStorageReports()) {
-      if (reportProto.getRemaining() > metaSizeRequired) {
+      if (reportProto.getRemaining() > metadataSizeRequired) {

Review comment:
       Can you add a “metadataSizeRequired not 0" if check around this for loop?  since metadataSizeRequired is passed as 0 in container replication. 




-- 
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: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org