hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Da Zhou (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-15876) Use keySet().removeAll() to remove multiple keys from Map in AzureBlobFileSystemStore
Date Thu, 08 Nov 2018 19:51:00 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-15876?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Da Zhou updated HADOOP-15876:
-----------------------------
    Status: Patch Available  (was: Open)

> Use keySet().removeAll() to remove multiple keys from Map in AzureBlobFileSystemStore
> -------------------------------------------------------------------------------------
>
>                 Key: HADOOP-15876
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15876
>             Project: Hadoop Common
>          Issue Type: Sub-task
>            Reporter: Ted Yu
>            Assignee: Da Zhou
>            Priority: Minor
>         Attachments: HADOOP-15876-001.patch
>
>
> Looking at hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/AzureBlobFileSystemStore.java
, {{removeDefaultAcl}} in particular:
> {code}
>     for (Map.Entry<String, String> defaultAclEntry : defaultAclEntries.entrySet())
{
>       aclEntries.remove(defaultAclEntry.getKey());
>     }
> {code}
> The above operation can be written this way:
> {code}
>     aclEntries.keySet().removeAll(defaultAclEntries.keySet());
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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


Mime
View raw message