This is an automated email from the ASF dual-hosted git repository. morningman pushed a commit to branch doris-jdk17 in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/doris-jdk17 by this push: new 770a4ef202e [fix](JDK17) It will report an exception whenwe start BE with JDK17 and query AVRO table : InaccessibleObjectException (#30003) 770a4ef202e is described below commit 770a4ef202e628b0fa36be6cd34e8e773e1f7c94 Author: Tiewei Fang <43782773+bepppo...@users.noreply.github.com> AuthorDate: Wed Jan 17 12:36:12 2024 +0800 [fix](JDK17) It will report an exception whenwe start BE with JDK17 and query AVRO table : InaccessibleObjectException (#30003) --- bin/start_be.sh | 7 ++++++- conf/be.conf | 3 +++ regression-test/pipeline/p0/conf/be.conf | 3 +++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/bin/start_be.sh b/bin/start_be.sh index ebf52a05ff9..2cada24457e 100755 --- a/bin/start_be.sh +++ b/bin/start_be.sh @@ -305,7 +305,12 @@ LOG_PATH="-DlogPath=${DORIS_HOME}/log/jni.log" COMMON_OPTS="-Dsun.java.command=DorisBE -XX:-CriticalJNINatives" JDBC_OPTS="-DJDBC_MIN_POOL=1 -DJDBC_MAX_POOL=100 -DJDBC_MAX_IDLE_TIME=300000 -DJDBC_MAX_WAIT_TIME=5000" -if [[ "${java_version}" -gt 8 ]]; then +if [[ "${java_version}" -gt 16 ]]; then + if [[ -z ${JAVA_OPTS_FOR_JDK_17} ]]; then + JAVA_OPTS_FOR_JDK_17="-Xmx1024m -XX:+UseZGC ${LOG_PATH} -Xlog:gc:${DORIS_HOME}/log/be.gc.log.${CUR_DATE} ${COMMON_OPTS} --add-opens=java.base/java.net=ALL-UNNAMED" + fi + final_java_opt="${JAVA_OPTS_FOR_JDK_17}" +elif [[ "${java_version}" -gt 8 ]]; then if [[ -z ${JAVA_OPTS_FOR_JDK_9} ]]; then JAVA_OPTS_FOR_JDK_9="-Xmx1024m ${LOG_PATH} -Xlog:gc:${DORIS_HOME}/log/be.gc.log.${CUR_DATE} ${COMMON_OPTS} ${JDBC_OPTS}" fi diff --git a/conf/be.conf b/conf/be.conf index 3f441ebf79c..a0da365ccb9 100644 --- a/conf/be.conf +++ b/conf/be.conf @@ -24,6 +24,9 @@ JAVA_OPTS="-Xmx1024m -DlogPath=$DORIS_HOME/log/jni.log -Xloggc:$DORIS_HOME/log/b # For jdk 9+, this JAVA_OPTS will be used as default JVM options JAVA_OPTS_FOR_JDK_9="-Xmx1024m -DlogPath=$DORIS_HOME/log/jni.log -Xlog:gc:$DORIS_HOME/log/be.gc.log.$CUR_DATE -Djavax.security.auth.useSubjectCredsOnly=false -Dsun.security.krb5.debug=true -Dsun.java.command=DorisBE -XX:-CriticalJNINatives -DJDBC_MIN_POOL=1 -DJDBC_MAX_POOL=100 -DJDBC_MAX_IDLE_TIME=300000 -DJDBC_MAX_WAIT_TIME=5000" +# For jdk 17+, this JAVA_OPTS will be used as default JVM options +JAVA_OPTS_FOR_JDK_17="-Xmx1024m -DlogPath=$DORIS_HOME/log/jni.log -Xlog:gc:$DORIS_HOME/log/be.gc.log.$CUR_DATE -Djavax.security.auth.useSubjectCredsOnly=false -Dsun.security.krb5.debug=true -Dsun.java.command=DorisBE -XX:-CriticalJNINatives --add-opens=java.base/java.net=ALL-UNNAMED" + # since 1.2, the JAVA_HOME need to be set to run BE process. # JAVA_HOME=/path/to/jdk/ diff --git a/regression-test/pipeline/p0/conf/be.conf b/regression-test/pipeline/p0/conf/be.conf index 0aca39d4f13..da4529a2b74 100644 --- a/regression-test/pipeline/p0/conf/be.conf +++ b/regression-test/pipeline/p0/conf/be.conf @@ -17,6 +17,9 @@ PPROF_TMPDIR="$DORIS_HOME/log/" +# For jdk 17+, this JAVA_OPTS will be used as default JVM options +JAVA_OPTS_FOR_JDK_17="-Xmx1024m -DlogPath=$DORIS_HOME/log/jni.log -Xlog:gc:$DORIS_HOME/log/be.gc.log.$CUR_DATE -Djavax.security.auth.useSubjectCredsOnly=false -Dsun.security.krb5.debug=true -Dsun.java.command=DorisBE -XX:-CriticalJNINatives --add-opens=java.base/java.net=ALL-UNNAMED" + # INFO, WARNING, ERROR, FATAL sys_log_level = INFO --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org