[ 
https://issues.apache.org/jira/browse/HDDS-1879?focusedWorklogId=304421&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-304421
 ]

ASF GitHub Bot logged work on HDDS-1879:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 30/Aug/19 17:26
            Start Date: 30/Aug/19 17:26
    Worklog Time Spent: 10m 
      Work Description: xiaoyuyao commented on pull request #1194: HDDS-1879.  
Support multiple excluded scopes when choosing datanodes in NetworkTopology
URL: https://github.com/apache/hadoop/pull/1194#discussion_r319607368
 
 

 ##########
 File path: 
hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/scm/net/NetUtils.java
 ##########
 @@ -71,35 +72,39 @@ public static int locationToDepth(String location) {
    *  Remove node from mutableExcludedNodes if it's covered by excludedScope.
    *  Please noted that mutableExcludedNodes content might be changed after the
    *  function call.
-   * @return the new excludedScope
    */
-  public static String removeDuplicate(NetworkTopology topology,
-      Collection<Node> mutableExcludedNodes, String excludedScope,
+  public static void removeDuplicate(NetworkTopology topology,
+      Collection<Node> mutableExcludedNodes, List<String> 
mutableExcludedScopes,
       int ancestorGen) {
     if (mutableExcludedNodes == null || mutableExcludedNodes.size() == 0 ||
 
 Review comment:
   NIT: We can use CollectionUtils.isEmpty() to simplify the code at 79/80.
 
----------------------------------------------------------------
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]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 304421)
    Time Spent: 1h 40m  (was: 1.5h)

> Support multiple excluded scopes when choosing datanodes in NetworkTopology
> ---------------------------------------------------------------------------
>
>                 Key: HDDS-1879
>                 URL: https://issues.apache.org/jira/browse/HDDS-1879
>             Project: Hadoop Distributed Data Store
>          Issue Type: Sub-task
>            Reporter: Sammi Chen
>            Assignee: Sammi Chen
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1h 40m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.3.2#803003)

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

Reply via email to