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
The following commit(s) were added to refs/heads/branch-1.2-lts by this push:
new cb82c862a0 [branch-1.2](jvm) add jvm option to avoid BE crash (#17690)
cb82c862a0 is described below
commit cb82c862a0ced985e201e39ffd8ff294e3668e21
Author: Mingyu Chen <[email protected]>
AuthorDate: Sun Mar 12 08:49:39 2023 +0800
[branch-1.2](jvm) add jvm option to avoid BE crash (#17690)
Only for branch-1.2
The root cause is still unknown, just add this opt to avoid BE crash like:
---
be/src/runtime/routine_load/routine_load_task_executor.cpp | 4 ++--
be/src/util/jni-util.cpp | 2 ++
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/be/src/runtime/routine_load/routine_load_task_executor.cpp
b/be/src/runtime/routine_load/routine_load_task_executor.cpp
index a1ad37eefc..074cdae473 100644
--- a/be/src/runtime/routine_load/routine_load_task_executor.cpp
+++ b/be/src/runtime/routine_load/routine_load_task_executor.cpp
@@ -332,8 +332,8 @@ void RoutineLoadTaskExecutor::exec_task(StreamLoadContext*
ctx, DataConsumerPool
std::vector<RdKafka::TopicPartition*> topic_partitions;
for (auto& kv : ctx->kafka_info->cmt_offset) {
// The offsets you commit are the offsets of the messages you want
to read next
- RdKafka::TopicPartition* tp1 = RdKafka::TopicPartition::create(
- ctx->kafka_info->topic, kv.first, kv.second + 1);
+ RdKafka::TopicPartition* tp1 =
RdKafka::TopicPartition::create(ctx->kafka_info->topic,
+
kv.first, kv.second + 1);
topic_partitions.push_back(tp1);
}
diff --git a/be/src/util/jni-util.cpp b/be/src/util/jni-util.cpp
index 9ff52d1efe..c6218e0a02 100644
--- a/be/src/util/jni-util.cpp
+++ b/be/src/util/jni-util.cpp
@@ -77,6 +77,8 @@ void FindOrCreateJavaVM() {
{const_cast<char*>(classpath.c_str()), nullptr},
{const_cast<char*>(heap_size.c_str()), nullptr},
{const_cast<char*>(log_path.c_str()), nullptr},
+ // avoid BE crash, the reason is still unknown.
+ {const_cast<char*>("-Djava.compiler=NONE"), nullptr},
#ifdef __APPLE__
// On macOS, we should disable MaxFDLimit, otherwise the
RLIMIT_NOFILE
// will be assigned the minimum of OPEN_MAX (10240) and
rlim_cur (See src/hotspot/os/bsd/os_bsd.cpp)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]