This is an automated email from the ASF dual-hosted git repository.
kezhenxu94 pushed a commit to branch 2.0.2-release
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/2.0.2-release by this push:
new 6aaecdb Remove fast return for alert plugins due to bean
initialization lifecycle is not determinged
6aaecdb is described below
commit 6aaecdbd0b0fa675e1fa64c79a8926f23ccbcfac
Author: kezhenxu94 <[email protected]>
AuthorDate: Thu Dec 30 13:45:55 2021 +0800
Remove fast return for alert plugins due to bean initialization lifecycle
is not determinged
Causing alert sender is not executed
---
.../src/main/java/org/apache/dolphinscheduler/alert/AlertServer.java | 5 -----
1 file changed, 5 deletions(-)
diff --git
a/dolphinscheduler-alert/dolphinscheduler-alert-server/src/main/java/org/apache/dolphinscheduler/alert/AlertServer.java
b/dolphinscheduler-alert/dolphinscheduler-alert-server/src/main/java/org/apache/dolphinscheduler/alert/AlertServer.java
index 2c41f31..f1aa562 100644
---
a/dolphinscheduler-alert/dolphinscheduler-alert-server/src/main/java/org/apache/dolphinscheduler/alert/AlertServer.java
+++
b/dolphinscheduler-alert/dolphinscheduler-alert-server/src/main/java/org/apache/dolphinscheduler/alert/AlertServer.java
@@ -80,11 +80,6 @@ public class AlertServer implements Closeable {
checkTable();
startServer();
- if (alertPluginManager.size() == 0) {
- log.warn("No alert plugin, alert sender will exit.");
- return;
- }
-
Executors.newScheduledThreadPool(1)
.scheduleAtFixedRate(new Sender(), 5, 5, TimeUnit.SECONDS);
}