Browse Source

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

This reverts commit 18c04fa8cada6b9005f0823797e5f0cc8a7be812.
Srimanth Gunturi 11 years ago
parent
commit
14bc545182

+ 1 - 1
ambari-web/app/utils/ajax.js

@@ -1286,7 +1286,7 @@ var urls = {
             }, {
             }, {
               "batch_settings" : {
               "batch_settings" : {
                 "batch_separation_in_seconds" : data.intervalTimeSeconds,
                 "batch_separation_in_seconds" : data.intervalTimeSeconds,
-                "task_failure_tolerance" : data.toleratePercentage
+                "task_failure_tolerance" : data.tolerateSize
               }
               }
             } ]
             } ]
           }
           }

+ 1 - 1
ambari-web/app/utils/batch_scheduled_requests.js

@@ -143,7 +143,7 @@ module.exports = {
       },
       },
       data: {
       data: {
         intervalTimeSeconds: intervalTimeSeconds,
         intervalTimeSeconds: intervalTimeSeconds,
-        toleratePercentage : String(Math.round((100 * tolerateSize) / restartHostComponents.length)),
+        tolerateSize: tolerateSize,
         batches: this.getBatchesForRollingRestartRequest(restartHostComponents, batchSize)
         batches: this.getBatchesForRollingRestartRequest(restartHostComponents, batchSize)
       },
       },
       success: 'successCallback',
       success: 'successCallback',