Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-13192

Change the code order in getFileEncryptionInfo to avoid unnecessary call of assignment

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.0
    • Fix Version/s: 3.1.0
    • Component/s: encryption
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The assignment of version,suite and keyName should happen lazily, right before it's used in case the fileXAttr is null

        Attachments

        1. org.apache.hadoop.hdfs.TestEncryptionZones-output.txt
          71 kB
          LiXin Ge
        2. HDFS-13192.003.patch
          4 kB
          LiXin Ge
        3. HDFS-13192.002.patch
          4 kB
          LiXin Ge
        4. HDFS-13192.001.patch
          1 kB
          LiXin Ge

          Activity

            People

            • Assignee:
              GeLiXin LiXin Ge
              Reporter:
              GeLiXin LiXin Ge
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: