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

libhdfs doesn't return correct error codes in most cases

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3.0
    • Component/s: libhdfs
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Incompatible change, Reviewed
    • Release Note:
      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 P. McCabe

          Activity

            People

            • Assignee:
              cmccabe Colin P. McCabe
              Reporter:
              cmccabe Colin P. McCabe
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: