-
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.
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.