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

Disallow snapshot names that are also invalid directory names

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 2.4.0
    • Component/s: snapshots
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      There are a number of restrictions on valid names in HDFS. For example, you can't name a directory "." or "..", or something containing a ":".

      However, I can happily create a snapshot named "a:b:c", resulting in this:

      -> % hdfs dfs -createSnapshot /home/andrew a:b:c
      Created snapshot /home/andrew/.snapshot/a:b:c
      -> % hadoop fs -ls /home/andrew/.snapshot
      -ls: java.net.URISyntaxException: Relative path in absolute URI: a:b:c
      Usage: hadoop fs [generic options] -ls [-d] [-h] [-R] [<path> ...]
      

        Attachments

        1. HDFS-6068-0004.patch
          6 kB
          sathish
        2. HDFS-6068-0003.patch
          5 kB
          sathish
        3. HDFS-6068-0002.patch
          5 kB
          sathish
        4. HDFS-6068-0001.patch
          3 kB
          sathish

          Activity

            People

            • Assignee:
              sathish.gurram sathish
              Reporter:
              andrew.wang Andrew Wang
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: