From 5c1561a32fdb9f0e61e33c774818b995e87d08af Mon Sep 17 00:00:00 2001 From: zhuangchong Date: Fri, 23 Oct 2020 19:03:52 +0800 Subject: [PATCH] Solve the sonar bug. --- .../org/apache/dolphinscheduler/alert/runner/AlertSender.java | 1 + pom.xml | 1 + 2 files changed, 2 insertions(+) diff --git a/dolphinscheduler-alert/src/main/java/org/apache/dolphinscheduler/alert/runner/AlertSender.java b/dolphinscheduler-alert/src/main/java/org/apache/dolphinscheduler/alert/runner/AlertSender.java index 341cd5f88a..01152af757 100644 --- a/dolphinscheduler-alert/src/main/java/org/apache/dolphinscheduler/alert/runner/AlertSender.java +++ b/dolphinscheduler-alert/src/main/java/org/apache/dolphinscheduler/alert/runner/AlertSender.java @@ -142,6 +142,7 @@ public class AlertSender { alertResultExtend.setStatus("false"); alertResultExtend.setMessage(message); logger.error("Alert Plugin {} send error : not found plugin {}", pluginInstanceName, pluginName); + return alertResultExtend; } AlertInfo alertInfo = new AlertInfo(); diff --git a/pom.xml b/pom.xml index c2cb96e27a..5b45dbce00 100644 --- a/pom.xml +++ b/pom.xml @@ -917,6 +917,7 @@ **/service/zk/ZKServerTest.java **/service/zk/CuratorZookeeperClientTest.java **/service/queue/TaskUpdateQueueTest.java + **/service/alert/AlertClientServiceTest.java **/dao/mapper/DataSourceUserMapperTest.java