You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2020/12/06 00:47:39 UTC
[incubator-doris] branch master updated: [Refactor] Private
constructor for singleton (#4956)
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 42dd821 [Refactor] Private constructor for singleton (#4956)
42dd821 is described below
commit 42dd821021a437c291af5bff5221ccb5eb45eb8d
Author: Hao Tan <45...@users.noreply.github.com>
AuthorDate: Sun Dec 6 08:47:29 2020 +0800
[Refactor] Private constructor for singleton (#4956)
---
fe/fe-core/src/main/java/org/apache/doris/PaloFe.java | 1 -
fe/fe-core/src/main/java/org/apache/doris/service/ExecuteEnv.java | 8 ++------
2 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/fe/fe-core/src/main/java/org/apache/doris/PaloFe.java b/fe/fe-core/src/main/java/org/apache/doris/PaloFe.java
index 094a739..ca8a430 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/PaloFe.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/PaloFe.java
@@ -103,7 +103,6 @@ public class PaloFe {
LOG.info("Palo FE starting...");
FrontendOptions.init();
- ExecuteEnv.setup();
// init catalog and wait it be ready
Catalog.getCurrentCatalog().initialize(args);
diff --git a/fe/fe-core/src/main/java/org/apache/doris/service/ExecuteEnv.java b/fe/fe-core/src/main/java/org/apache/doris/service/ExecuteEnv.java
index 1c4aa39..544cb7d 100755
--- a/fe/fe-core/src/main/java/org/apache/doris/service/ExecuteEnv.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/service/ExecuteEnv.java
@@ -27,8 +27,9 @@ public class ExecuteEnv {
private MultiLoadMgr multiLoadMgr;
private ConnectScheduler scheduler;
- public ExecuteEnv() {
+ private ExecuteEnv() {
multiLoadMgr = new MultiLoadMgr();
+ scheduler = new ConnectScheduler(Config.qe_max_connection);
}
public static ExecuteEnv getInstance() {
@@ -42,11 +43,6 @@ public class ExecuteEnv {
return INSTANCE;
}
- public static void setup() {
- ExecuteEnv env = getInstance();
- env.scheduler = new ConnectScheduler(Config.qe_max_connection);
- }
-
public ConnectScheduler getScheduler() {
return scheduler;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org