eagle-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jinh...@apache.org
Subject incubator-eagle git commit: [MINOR] Health check optimize
Date Wed, 23 Nov 2016 14:11:40 GMT
Repository: incubator-eagle
Updated Branches:
  refs/heads/master 929a21da7 -> adeaa0f9e


[MINOR] Health check optimize

Author: wujinhu <wujinhu920@126.com>

Closes #678 from wujinhu/healthCheckOptimize.


Project: http://git-wip-us.apache.org/repos/asf/incubator-eagle/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-eagle/commit/adeaa0f9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-eagle/tree/adeaa0f9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-eagle/diff/adeaa0f9

Branch: refs/heads/master
Commit: adeaa0f9e1be4f8f017449c7155f52b072052ed7
Parents: 929a21d
Author: wujinhu <wujinhu920@126.com>
Authored: Wed Nov 23 22:11:33 2016 +0800
Committer: wujinhu <wujinhu920@126.com>
Committed: Wed Nov 23 22:11:33 2016 +0800

----------------------------------------------------------------------
 .../app/service/impl/ApplicationHealthCheckEmailPublisher.java    | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/adeaa0f9/eagle-core/eagle-app/eagle-app-base/src/main/java/org/apache/eagle/app/service/impl/ApplicationHealthCheckEmailPublisher.java
----------------------------------------------------------------------
diff --git a/eagle-core/eagle-app/eagle-app-base/src/main/java/org/apache/eagle/app/service/impl/ApplicationHealthCheckEmailPublisher.java
b/eagle-core/eagle-app/eagle-app-base/src/main/java/org/apache/eagle/app/service/impl/ApplicationHealthCheckEmailPublisher.java
index f3d543a..c7d7e0f 100644
--- a/eagle-core/eagle-app/eagle-app-base/src/main/java/org/apache/eagle/app/service/impl/ApplicationHealthCheckEmailPublisher.java
+++ b/eagle-core/eagle-app/eagle-app-base/src/main/java/org/apache/eagle/app/service/impl/ApplicationHealthCheckEmailPublisher.java
@@ -51,6 +51,9 @@ public class ApplicationHealthCheckEmailPublisher implements ApplicationHealthCh
 
     @Override
     public void onUnHealthApplication(Map<String, HealthCheck.Result> results) {
+        if (results.size() == 0) {
+            return;
+        }
         Properties properties = parseMailClientConfig();
         if (properties == null) {
             return;


Mime
View raw message