Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-15763 Über-JIRA: abfs phase II: Hadoop 3.3 features & fixes
  3. HADOOP-15876

Use keySet().removeAll() to remove multiple keys from Map in AzureBlobFileSystemStore

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2.0
    • Fix Version/s: 3.2.1
    • Component/s: fs/azure
    • Labels:
      None

      Description

      Looking at hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/AzureBlobFileSystemStore.java , removeDefaultAcl in particular:

          for (Map.Entry<String, String> defaultAclEntry : defaultAclEntries.entrySet()) {
            aclEntries.remove(defaultAclEntry.getKey());
          }
      

      The above operation can be written this way:

          aclEntries.keySet().removeAll(defaultAclEntries.keySet());
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                DanielZhou Da Zhou
                Reporter:
                yuzhihong@gmail.com Ted Yu
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: