diff --git a/fe/check/checkstyle/import-control.xml b/fe/check/checkstyle/import-control.xml index 9ff32f7d512eb0..16371ce8919206 100644 --- a/fe/check/checkstyle/import-control.xml +++ b/fe/check/checkstyle/import-control.xml @@ -25,6 +25,7 @@ under the License. + diff --git a/fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java b/fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java index 7f223775b60323..8ba9335e28590c 100755 --- a/fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java +++ b/fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java @@ -1184,7 +1184,8 @@ private void getClusterIdAndRole() throws IOException { } if (Config.cluster_id != -1 && clusterId != Config.cluster_id) { - throw new IOException("cluster id is not equal with config item cluster_id. will exit."); + throw new IOException("cluster id is not equal with config item cluster_id. will exit. " + + "If you are in recovery mode, please also modify the cluster_id in 'doris-meta/image/VERSION'"); } if (role.equals(FrontendNodeType.FOLLOWER)) { diff --git a/fe/fe-core/src/main/java/org/apache/doris/qe/ConnectProcessor.java b/fe/fe-core/src/main/java/org/apache/doris/qe/ConnectProcessor.java index 73c6debb698ed3..4c2549d22a5730 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/qe/ConnectProcessor.java +++ b/fe/fe-core/src/main/java/org/apache/doris/qe/ConnectProcessor.java @@ -362,7 +362,9 @@ private void auditAfterExec(String origStmt, StatementBase parsedStmt, // Process COM_QUERY statement, // only throw an exception when there is a problem interacting with the requesting client private void handleQuery(MysqlCommand mysqlCommand) { - MetricRepo.COUNTER_REQUEST_ALL.increase(1L); + if (MetricRepo.isInit) { + MetricRepo.COUNTER_REQUEST_ALL.increase(1L); + } // convert statement to Java string byte[] bytes = packetBuf.array(); int ending = packetBuf.limit() - 1; diff --git a/fe/fe-core/src/test/java/org/apache/doris/analysis/S3TvfLoadStmtTest.java b/fe/fe-core/src/test/java/org/apache/doris/analysis/S3TvfLoadStmtTest.java index cc41e31e3c338c..6c847f28206a6f 100644 --- a/fe/fe-core/src/test/java/org/apache/doris/analysis/S3TvfLoadStmtTest.java +++ b/fe/fe-core/src/test/java/org/apache/doris/analysis/S3TvfLoadStmtTest.java @@ -33,11 +33,11 @@ import org.apache.doris.load.loadv2.LoadTask.MergeType; import org.apache.doris.tablefunction.S3TableValuedFunction; +import com.google.common.collect.Lists; import com.google.common.collect.Maps; import com.google.common.collect.Sets; import mockit.Expectations; import mockit.Injectable; -import org.apache.hadoop.util.Lists; import org.junit.Assert; import org.junit.Before; import org.junit.Test;