You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by sr...@apache.org on 2014/01/21 03:22:21 UTC

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

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 <sg...@hortonworks.com>
Authored: Mon Jan 20 18:22:02 2014 -0800
Committer: Srimanth Gunturi <sg...@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',