Browse Source

HDFS-12714. Hadoop 3 missing fix for HDFS-5169. Contributed by Joe McDonnell.

(cherry picked from commit b8c8b5bc274211b29be125e5463662795a363f84)
John Zhuge 7 years ago
parent
commit
0ec172b42f

+ 1 - 1
hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs/hdfs.c

@@ -2688,7 +2688,7 @@ static int translateZCRException(JNIEnv *env, jthrowable exc)
         ret = EPROTONOSUPPORT;
         ret = EPROTONOSUPPORT;
         goto done;
         goto done;
     }
     }
-    ret = printExceptionAndFree(env, jthr, PRINT_EXC_ALL,
+    ret = printExceptionAndFree(env, exc, PRINT_EXC_ALL,
             "hadoopZeroCopyRead: ZeroCopyCursor#read failed");
             "hadoopZeroCopyRead: ZeroCopyCursor#read failed");
 done:
 done:
     free(className);
     free(className);