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

libhdfs doesn't return correct error codes in most cases

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.3.0
    • libhdfs
    • None
    • Incompatible change, Reviewed
    • libhdfs now returns correct codes in errno. Previously, due to a bug, many functions set errno to 255 instead of the more specific error code.

    Description

      libhdfs has some code to translate Java exceptions into C error codes. Unfortunately, the exceptions are returned to us in "dotted" format, but the code is expecting them to be in "slash-separated" format. This results in most exceptions just leading to a generic error code.

      We should fix this and add a unit test to ensure this continues to work.

      Attachments

        1. HDFS-4997.001.patch
          11 kB
          Colin McCabe

        Activity

          People

            cmccabe Colin McCabe
            cmccabe Colin McCabe
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: