yiguolei commented on code in PR #62615:
URL: https://github.com/apache/doris/pull/62615#discussion_r3144802812
##########
be/src/util/jni_native_method.cpp:
##########
@@ -17,16 +17,100 @@
#include "util/jni_native_method.h"
+#include <gen_cpp/FrontendService.h>
#include <glog/logging.h>
+#include <chrono>
#include <cstdlib>
+#include <thread>
#include <vector>
+#include "common/status.h"
#include "jni.h"
+#include "runtime/exec_env.h"
+#include "util/client_cache.h"
#include "util/defer_op.h"
+#include "util/thrift_rpc_helper.h"
namespace doris {
+namespace {
+
+void throw_java_runtime_exception(JNIEnv* env, const std::string& message) {
+ jclass exception_cl = env->FindClass("java/lang/IllegalStateException");
+ if (exception_cl != nullptr) {
+ env->ThrowNew(exception_cl, message.c_str());
+ env->DeleteLocalRef(exception_cl);
+ }
+}
+
+Result<int64_t> request_maxcompute_block_id_from_fe(int64_t txn_id,
Review Comment:
为什么这段代码是cpp的??
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]