|
@@ -222,7 +222,7 @@ App.MainHostDetailsController = Em.Controller.extend({
|
|
|
// too old
|
|
|
self.getHdfsUser().done(function() {
|
|
|
var msg = Em.Object.create({
|
|
|
- confirmMsg: Em.I18n.t('services.service.stop.HDFS.warningMsg.checkPointTooOld') +
|
|
|
+ confirmMsg: Em.I18n.t('services.service.stop.HDFS.warningMsg.checkPointTooOld').format(App.nnCheckpointAgeAlertThreshold) +
|
|
|
Em.I18n.t('services.service.stop.HDFS.warningMsg.checkPointTooOld.instructions').format(isNNCheckpointTooOld, self.get('content.hdfsUser')),
|
|
|
confirmButton: Em.I18n.t('common.next')
|
|
|
});
|
|
@@ -260,7 +260,7 @@ App.MainHostDetailsController = Em.Controller.extend({
|
|
|
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
|