You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by jo...@apache.org on 2016/12/07 21:18:13 UTC

[28/41] ambari git commit: AMBARI-19108 Perf: Web UI can't load json with host check info. (atkach)

AMBARI-19108 Perf: Web UI can't load json with host check info. (atkach)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/165c4d69
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/165c4d69
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/165c4d69

Branch: refs/heads/branch-feature-AMBARI-18456
Commit: 165c4d692b4a76e2911027ac3f06d1948fb696e7
Parents: 304a5bf
Author: Andrii Tkach <at...@apache.org>
Authored: Tue Dec 6 20:17:35 2016 +0200
Committer: Andrii Tkach <at...@apache.org>
Committed: Wed Dec 7 12:47:42 2016 +0200

----------------------------------------------------------------------
 ambari-web/app/mixins/main/host/details/actions/check_host.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/165c4d69/ambari-web/app/mixins/main/host/details/actions/check_host.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/mixins/main/host/details/actions/check_host.js b/ambari-web/app/mixins/main/host/details/actions/check_host.js
index 532353f..faf8ef1 100644
--- a/ambari-web/app/mixins/main/host/details/actions/check_host.js
+++ b/ambari-web/app/mixins/main/host/details/actions/check_host.js
@@ -193,7 +193,8 @@ App.CheckHostMixin = Em.Mixin.create({
    */
   getHostCheckTasksSuccess: function (data) {
     if (!data) {
-      return;
+      //if resolution host check has corrupted data then skip it
+      return this.getGeneralHostCheck();
     }
     if (["FAILED", "COMPLETED", "TIMEDOUT"].contains(data.Requests.request_status)) {
       if (data.Requests.inputs.indexOf("last_agent_env_check") != -1) {