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

libhdfs does not get FileNotFoundException

    Details

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

      Description

      When trying to open a file that does not exist for read, libhdfs prints an error out along the line of "Cannot open file <filename>".

      I believe it should be throwing the FileNotFoundException instead. This would allow us to correctly set the errno and more naturally give the errors to the C-based clients.

        Attachments

        1. HADOOP-5581.patch
          3 kB
          Brian Bockelman
        2. HADOOP-5581-v2.patch
          2 kB
          Brian Bockelman

          Issue Links

            Activity

              People

              • Assignee:
                bockelman Brian Bockelman
                Reporter:
                bockelman Brian Bockelman
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: