Skip to content

Commit

Permalink
[FLINK-23346] Avoid core dump when rethrowing the exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Zakelly committed Dec 13, 2023
1 parent de2ffe6 commit 04329bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion java/rocksjni/flink_compactionfilterjni.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ class JniCallbackBase : public ROCKSDB_NAMESPACE::JniCallback {
protected:
inline void CheckAndRethrowException(JNIEnv* env) const {
if (env->ExceptionCheck()) {
jthrowable obj = env->ExceptionOccurred();
env->ExceptionDescribe();
env->Throw(env->ExceptionOccurred());
env->Throw(obj);
}
}
};
Expand Down

0 comments on commit 04329bf

Please sign in to comment.