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 00:22:45 UTC

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

Updated Branches:
  refs/heads/trunk 49bf41a56 -> 18c04fa8c


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


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

Branch: refs/heads/trunk
Commit: 18c04fa8cada6b9005f0823797e5f0cc8a7be812
Parents: 49bf41a
Author: Srimanth Gunturi <sg...@hortonworks.com>
Authored: Mon Jan 20 15:03:46 2014 -0800
Committer: Srimanth Gunturi <sg...@hortonworks.com>
Committed: Mon Jan 20 15:03:46 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/18c04fa8/ambari-web/app/utils/ajax.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/utils/ajax.js b/ambari-web/app/utils/ajax.js
index dc8aa5d..ca36b09 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.tolerateSize
+                "task_failure_tolerance" : data.toleratePercentage
               }
             } ]
           }

http://git-wip-us.apache.org/repos/asf/ambari/blob/18c04fa8/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 bf9164f..59323e8 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,
-        tolerateSize: tolerateSize,
+        toleratePercentage : String(Math.round((100 * tolerateSize) / restartHostComponents.length)),
         batches: this.getBatchesForRollingRestartRequest(restartHostComponents, batchSize)
       },
       success: 'successCallback',