Hadoop Common
  1. Hadoop Common
  2. HADOOP-6900

FileSystem#listLocatedStatus should not throw generic RuntimeException to indicate error conditions

    Details

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

      Description

      HDFS-6870 introduced FileSystem#listLocatedStatus(), that returns an Iterator to iterate through LocatedFileStatus for files under a directory or recursively under a sub-directory. Iterator currently throws generic RuntimeException to indicate error conditions. API needs to be changed to throw appropriate exceptions to indicate error conditions.

      1. listFilesIO1.patch
        25 kB
        Hairong Kuang
      2. listFilesIO.patch
        20 kB
        Hairong Kuang

        Issue Links

          Activity

            People

            • Assignee:
              Hairong Kuang
              Reporter:
              Suresh Srinivas
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development