Details
Description
HDFS-5169 is a fix for a null pointer dereference in translateZCRException. This line in hdfs.c:
ret = printExceptionAndFree(env, jthr, PRINT_EXC_ALL, "hadoopZeroCopyRead: ZeroCopyCursor#read failed");
should be:
ret = printExceptionAndFree(env, exc, PRINT_EXC_ALL, "hadoopZeroCopyRead: ZeroCopyCursor#read failed");
Plainly, translateZCRException should print the exception (exc) passed in to the function rather than the uninitialized local jthr.
The fix for HDFS-5169 (part of HDFS-4949) exists on hadoop 2.* branches, but it is missing on hadoop 3 branches including trunk.