You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2023/03/11 14:41:54 UTC
[doris] 03/06: [minor](jvm) add more error logs for JNI (#17270)
This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch branch-1.2-lts
in repository https://gitbox.apache.org/repos/asf/doris.git
commit d96f0fd4c99622de22414721c544b8ce4d53d3de
Author: Gabriel <ga...@gmail.com>
AuthorDate: Wed Mar 1 22:09:57 2023 +0800
[minor](jvm) add more error logs for JNI (#17270)
---
be/src/util/jni-util.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/be/src/util/jni-util.cpp b/be/src/util/jni-util.cpp
index b2a65eb69b..9ff52d1efe 100644
--- a/be/src/util/jni-util.cpp
+++ b/be/src/util/jni-util.cpp
@@ -155,7 +155,7 @@ Status JniUtil::GetJNIEnvSlowPath(JNIEnv** env) {
rc = g_vm->AttachCurrentThread((void**)&tls_env_, nullptr);
}
if (rc != 0 || tls_env_ == nullptr) {
- return Status::InternalError("Unable to get JVM!");
+ return Status::InternalError("Unable to get JVM: {}", rc);
}
*env = tls_env_;
return Status::OK();
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org