Browse Source

AMBARI-216. Remove sleeps to speed simulations of installs. (Vikram Dixit
via omalley)


git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/branches/ambari-186@1337235 13f79535-47bb-0310-9956-ffa450edef68

Owen O'Malley 13 năm trước cách đây
mục cha
commit
f3affe1ee1

+ 3 - 0
CHANGES.txt

@@ -2,6 +2,9 @@ Ambari Change log
 
 Release 0.x.x - unreleased
 
+  AMBARI-216. Remove sleeps to speed simulations of installs. (Vikram Dixit
+  via omalley)
+
   AMBARI-215. Fix description for dfs_data_dir. (hitesh via omalley)
 
   AMBARI-209. Node selection should ignore failed nodes. (hitesh via omalley)

+ 2 - 1
hmc/php/frontend/addNodes/findSshableNodes.php

@@ -15,7 +15,8 @@ $dbAccessor = new HMCDBAccessor($GLOBALS["DB_PATH"]);
 
 function getCommandLine() {
   $cmdLine = "hostname ;";
-  $cmdLine = $cmdLine . 'sleep $[ $RANDOM % 5 ]; ';
+  // uncomment following line for demo purposes.
+  // $cmdLine = $cmdLine . 'sleep $[ $RANDOM % 5 ]; ';
   return $cmdLine;
 }
 

+ 2 - 1
hmc/php/frontend/addNodes/obtainNodesInfo.php

@@ -33,7 +33,8 @@ function getCommandLine() {
 
   $cmdLine = $freeCmd.$echoCmd.$cpuCmd.$echoCmd.$archCmd.$echoCmd.$mntPointCmd.$echoCmd.$osTypeCmd.$echoCmd.$osInfoCmd.$echoCmd.$ipCmd.$echoCmd.$publicDnsCmd.$echoCmd.$privateDnsCmd.$echoCmd;
 
-  $cmdLine = $cmdLine . 'sleep $[ $RANDOM % 5 ]; ';
+  // uncomment following line for demo purposes.
+  // $cmdLine = $cmdLine . 'sleep $[ $RANDOM % 5 ]; ';
   return $cmdLine;
 }