impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tianyi Wang (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-6060: Check the return value of JNI exception handling functions
Date Mon, 23 Oct 2017 17:46:26 GMT
Tianyi Wang has posted comments on this change. ( )

Change subject: IMPALA-6060: Check the return value of JNI exception handling functions

Patch Set 2:

File be/src/util/jni-util.h:
PS1, Line 159:   /// lives as long as this guard. jstr should not be null.
> Usually such a comment indicates a precondition, but in this case a nullptr
File be/src/util/
PS1, Line 30: Status JniUtfCharGuard::create(JNIEnv* env, jstring jstr, JniUtfCharGuard* out)
> fix pointer style while you are here: JNIEnv* env, etc.
PS1, Line 197:   }
> RETURN_ERROR_IF_EXC calls GetJniExceptionMsg.
RETURN_ERROR_IF_EXC will call GetJniExceptionMsg again, which will result in an infinite recursion.
And we may want to do some logging here since it is critical.
PS1, Line 208:     }
> same here, I think the right fix is to add a RETURN_ERROR_IF_EXC(env);
See above.

To view, visit
To unsubscribe, visit

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie3ed88bf8739c56a066f2402727c8204e96aa116
Gerrit-Change-Number: 8334
Gerrit-PatchSet: 2
Gerrit-Owner: Tianyi Wang <>
Gerrit-Reviewer: Alex Behm <>
Gerrit-Reviewer: Tianyi Wang <>
Gerrit-Comment-Date: Mon, 23 Oct 2017 17:46:26 +0000
Gerrit-HasComments: Yes

  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message