ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From srima...@apache.org
Subject git commit: Revert "AMBARI-4361. Rolling restart failure tolerance should be percentage values. (srimanth)"
Date Tue, 21 Jan 2014 02:22:21 GMT
Updated Branches:
  refs/heads/trunk 18c04fa8c -> 14bc54518


Revert "AMBARI-4361. Rolling restart failure tolerance should be percentage values. (srimanth)"

This reverts commit 18c04fa8cada6b9005f0823797e5f0cc8a7be812.


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

Branch: refs/heads/trunk
Commit: 14bc5451825922b981bbd8239e4da70ba82b1d1a
Parents: 18c04fa
Author: Srimanth Gunturi <sgunturi@hortonworks.com>
Authored: Mon Jan 20 18:22:02 2014 -0800
Committer: Srimanth Gunturi <sgunturi@hortonworks.com>
Committed: Mon Jan 20 18:22:02 2014 -0800

----------------------------------------------------------------------
 ambari-web/app/utils/ajax.js                     | 2 +-
 ambari-web/app/utils/batch_scheduled_requests.js | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/14bc5451/ambari-web/app/utils/ajax.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/utils/ajax.js b/ambari-web/app/utils/ajax.js
index ca36b09..dc8aa5d 100644
--- a/ambari-web/app/utils/ajax.js
+++ b/ambari-web/app/utils/ajax.js
@@ -1286,7 +1286,7 @@ var urls = {
             }, {
               "batch_settings" : {
                 "batch_separation_in_seconds" : data.intervalTimeSeconds,
-                "task_failure_tolerance" : data.toleratePercentage
+                "task_failure_tolerance" : data.tolerateSize
               }
             } ]
           }

http://git-wip-us.apache.org/repos/asf/ambari/blob/14bc5451/ambari-web/app/utils/batch_scheduled_requests.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/utils/batch_scheduled_requests.js b/ambari-web/app/utils/batch_scheduled_requests.js
index 59323e8..bf9164f 100644
--- a/ambari-web/app/utils/batch_scheduled_requests.js
+++ b/ambari-web/app/utils/batch_scheduled_requests.js
@@ -143,7 +143,7 @@ module.exports = {
       },
       data: {
         intervalTimeSeconds: intervalTimeSeconds,
-        toleratePercentage : String(Math.round((100 * tolerateSize) / restartHostComponents.length)),
+        tolerateSize: tolerateSize,
         batches: this.getBatchesForRollingRestartRequest(restartHostComponents, batchSize)
       },
       success: 'successCallback',


Mime
View raw message