This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git
The following commit(s) were added to refs/heads/master by this push:
new 289aacb [improvement] enable check_java_version (#8034)
289aacb is described below
commit 289aacb78c98e86dbf3be96ccbb396d109307946
Author: jiafeng.zhang <[email protected]>
AuthorDate: Thu Feb 17 11:16:45 2022 +0800
[improvement] enable check_java_version (#8034)
Enable to check the Java version when Doris starts, to prevent the user
experience caused by the inconsistency
between the compiled version and the running version.
If the Java version is compiled and the Java version is run, it will not
start, and a prompt message will be given.
---
docs/en/administrator-guide/config/fe_config.md | 6 +++---
docs/zh-CN/administrator-guide/config/fe_config.md | 4 ++--
fe/fe-core/src/main/java/org/apache/doris/common/Config.java | 2 +-
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/docs/en/administrator-guide/config/fe_config.md
b/docs/en/administrator-guide/config/fe_config.md
index f2cf45f..1f8ab3f 100644
--- a/docs/en/administrator-guide/config/fe_config.md
+++ b/docs/en/administrator-guide/config/fe_config.md
@@ -394,7 +394,7 @@ IsMutable:true
MasterOnly:true
If disable_storage_medium_check is true, ReportHandler would not check
tablet's storage medium and disable storage cool down function, the default
value is false. You can set the value true when you don't care what the storage
medium of the tablet is.
-
+
### drop_backend_after_decommission
Default:false
@@ -448,9 +448,9 @@ This variable is a dynamic configuration, and users can
modify the configuration
### check_java_version
-Default:false
+Default:true
-If set to true, Doris will check whether the compiled and running Java
versions are compatible
+Doris will check whether the compiled and run Java versions are compatible, if
not, it will throw a Java version mismatch exception message and terminate the
startup
### max_running_rollup_job_num_per_table
diff --git a/docs/zh-CN/administrator-guide/config/fe_config.md
b/docs/zh-CN/administrator-guide/config/fe_config.md
index 8978452..b373719 100644
--- a/docs/zh-CN/administrator-guide/config/fe_config.md
+++ b/docs/zh-CN/administrator-guide/config/fe_config.md
@@ -434,9 +434,9 @@ show data (其他用法:HELP SHOW DATA)
### check_java_version
-默认值:false
+默认值:true
-如果设置为 true,Doris 将检查已编译和运行的 Java 版本是否兼容
+Doris 将检查已编译和运行的 Java 版本是否兼容,如果不兼容将抛出Java版本不匹配的异常信息,并终止启动
### max_running_rollup_job_num_per_table
diff --git a/fe/fe-core/src/main/java/org/apache/doris/common/Config.java
b/fe/fe-core/src/main/java/org/apache/doris/common/Config.java
index 12dd3ad..4f9089e 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/common/Config.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/common/Config.java
@@ -1277,7 +1277,7 @@ public class Config extends ConfigBase {
* If set to true, Doris will check if the compiled and running versions
of Java are compatible
*/
@ConfField
- public static boolean check_java_version = false;
+ public static boolean check_java_version = true;
/**
* control materialized view
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]