Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-9877

Fix listing of snapshot directories in globStatus

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.1.0-beta
    • 2.2.0
    • None
    • None

    Description

      decster:~/hadoop> bin/hadoop fs -ls "/foo/.snapshot"
      13/08/16 01:17:22 INFO hdfs.DFSClient: +++++ listPath(/)
      13/08/16 01:17:22 INFO hdfs.DFSClient: +++++ listPath(/foo)
      ls: `/foo/.snapshot': No such file or directory
      

      HADOOP-9817 refactor some globStatus code, but forgot to handle special case that .snapshot dir is not show up in listStatus but exists, so we need to explicitly check path existence using getFileStatus, rather than depending on listStatus results.

      Attachments

        1. HADOOP-9877.v1.patch
          2 kB
          Binglin Chang
        2. HADOOP-9877.v2.patch
          6 kB
          Binglin Chang
        3. HADOOP-9877.v3.patch
          6 kB
          Binglin Chang
        4. HADOOP-9877.v4.patch
          8 kB
          Binglin Chang
        5. HADOOP-9877.v5.patch
          8 kB
          Binglin Chang
        6. HADOOP-9877-branch2.patch
          8 kB
          Binglin Chang

        Issue Links

          Activity

            People

              decster Binglin Chang
              decster Binglin Chang
              Votes:
              0 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: