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

getErasureCodingPolicy should handle .snapshot dir better

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0-alpha1, 3.1.0
    • 3.1.0, 3.0.1
    • erasure-coding, hdfs, snapshots
    • None
    • Reviewed

    Description

      Scenario:-
      ---------------
      Operation on snapshot dir.

      EC policy
      bin> ./hdfs ec -getPolicy -path /dir/
      RS-3-2-1024k
      bin> ./hdfs ec -getPolicy -path /dir/.snapshot/
      FileNotFoundException: Path not found: /dir/.snapshot

      bin> ./hdfs dfs -ls /dir/.snapshot/
      Found 2 items
      drwxr-xr-x - user group 0 2017-12-05 12:27 /dir/.snapshot/s1
      drwxr-xr-x - user group 0 2017-12-05 12:28 /dir/.snapshot/s2

      Storagepolicies
      bin> ./hdfs storagepolicies -getStoragePolicy -path /dir/.snapshot/
      The storage policy of /dir/.snapshot/ is unspecified
      bin> ./hdfs storagepolicies -getStoragePolicy -path /dir/
      The storage policy of /dir/:
      BlockStoragePolicy

      {COLD:2, storageTypes=[ARCHIVE], creationFallbacks=[], replicationFallbacks=[]}

      Which is the correct behavior ?

      Attachments

        1. HDFS-12897.005.patch
          11 kB
          LiXin Ge
        2. HDFS-12897.004.patch
          9 kB
          LiXin Ge
        3. HDFS-12897.003.patch
          6 kB
          LiXin Ge
        4. HDFS-12897.002.patch
          4 kB
          LiXin Ge
        5. HDFS-12897.001.patch
          4 kB
          LiXin Ge

        Issue Links

          Activity

            People

              GeLiXin LiXin Ge
              Harsha1206 Harshakiran Reddy
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: