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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.1.0
    • 3.1.0
    • encryption
    • None
    • 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. HDFS-13192.001.patch
          1 kB
          LiXin Ge
        2. HDFS-13192.002.patch
          4 kB
          LiXin Ge
        3. HDFS-13192.003.patch
          4 kB
          LiXin Ge
        4. org.apache.hadoop.hdfs.TestEncryptionZones-output.txt
          71 kB
          LiXin Ge

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: