AMBARI-12951. Prompt user to save checkpoint before shutdown if last checkpoint is too old. (xiwang via yusaku)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/a8301564 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/a8301564 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/a8301564 Branch: refs/heads/branch-dev-patch-upgrade Commit: a8301564a937ec1486b19d2be344e5c83ae9e28c Parents: eb2e615 Author: Yusaku Sako <[email protected]> Authored: Thu Sep 24 12:12:56 2015 -0700 Committer: Yusaku Sako <[email protected]> Committed: Thu Sep 24 12:12:56 2015 -0700 ---------------------------------------------------------------------- ambari-web/app/controllers/main/service/item.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/a8301564/ambari-web/app/controllers/main/service/item.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/main/service/item.js b/ambari-web/app/controllers/main/service/item.js index 89fbb69..ae1a327 100644 --- a/ambari-web/app/controllers/main/service/item.js +++ b/ambari-web/app/controllers/main/service/item.js @@ -260,7 +260,7 @@ App.MainServiceItemController = Em.Controller.extend(App.SupportClientConfigsDow if (!lastCheckpointTime) { this.set("isNNCheckpointTooOld", null); } else { - var time_criteria = 12; // time in hours to define how many hours ago is too old + var time_criteria = App.nnCheckpointAgeAlertThreshold; // time in hours to define how many hours ago is too old var time_ago = (Math.round(App.dateTime() / 1000) - (time_criteria * 3600)) *1000; if (lastCheckpointTime <= time_ago) { // too old, set the effected hostName
