haiyang1987 commented on code in PR #6597:
URL: https://github.com/apache/hadoop/pull/6597#discussion_r1519563597


##########
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockManager.java:
##########
@@ -4359,9 +4348,15 @@ private void 
chooseExcessRedundancyStriped(BlockCollection bc,
         }
       }
       if (candidates.size() > 1) {
+        List<StorageType> internalExcessTypes = storagePolicy.chooseExcess(
+            (short) 1, DatanodeStorageInfo.toStorageTypes(candidates));
+        if (internalExcessTypes.isEmpty()) {

Review Comment:
   About internalExcessTypes, could you explain which case will empty ? thanks~



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