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

libhdfs does not get FileNotFoundException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.19.1
    • 0.21.0
    • None
    • None
    • 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-v2.patch
          2 kB
          Brian Bockelman
        2. HADOOP-5581.patch
          3 kB
          Brian Bockelman

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: