You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by hi...@apache.org on 2012/06/29 20:56:01 UTC

svn commit: r1355508 - in /incubator/ambari/trunk: CHANGES.txt hmc/php/frontend/configUtils.php

Author: hitesh
Date: Fri Jun 29 18:56:00 2012
New Revision: 1355508

URL: http://svn.apache.org/viewvc?rev=1355508&view=rev
Log:
AMBARI-583. UI allows io_sort_spill_percent value to be set to over 1.0 (Contributed by Jaimin Jetly)

Modified:
    incubator/ambari/trunk/CHANGES.txt
    incubator/ambari/trunk/hmc/php/frontend/configUtils.php

Modified: incubator/ambari/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/CHANGES.txt?rev=1355508&r1=1355507&r2=1355508&view=diff
==============================================================================
--- incubator/ambari/trunk/CHANGES.txt (original)
+++ incubator/ambari/trunk/CHANGES.txt Fri Jun 29 18:56:00 2012
@@ -6,6 +6,9 @@ characters wide.
 
 Release 1.0.0 - unreleased
 
+  AMBARI-583. UI allows io_sort_spill_percent value to be set to over 1.0
+  (Jaimin Jetly via hitesh)
+
   AMBARI-580. Run datanodes/tasktrackers in 64-bit mode to get around rpm issues
   (hitesh)
 

Modified: incubator/ambari/trunk/hmc/php/frontend/configUtils.php
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/hmc/php/frontend/configUtils.php?rev=1355508&r1=1355507&r2=1355508&view=diff
==============================================================================
--- incubator/ambari/trunk/hmc/php/frontend/configUtils.php (original)
+++ incubator/ambari/trunk/hmc/php/frontend/configUtils.php Fri Jun 29 18:56:00 2012
@@ -321,6 +321,8 @@ function validateConfigs($svcConfigs) {
         $check = basicNumericCheck($val, FALSE);
         if ($check["error"] != "") {
           $errors[$key] = $check;
+        } else if ($val > 1) {
+          $errors[$key] = array ( "error" => "value cannot be greater than 1");
         }
       } else if ($key == "mapreduce_userlog_retainhours") {
         $check = basicNumericCheck($val);