incubator-ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgog...@apache.org
Subject svn commit: r1338508 - in /incubator/ambari/branches/ambari-186: CHANGES.txt hmc/php/util/sequentialScriptRunner.php
Date Tue, 15 May 2012 02:22:41 GMT
Author: vgogate
Date: Tue May 15 02:22:40 2012
New Revision: 1338508

URL: http://svn.apache.org/viewvc?rev=1338508&view=rev
Log:
AMBARI-224: sequentialScriptRunner.php logging in a tight loop by Jitendra Pandey

Modified:
    incubator/ambari/branches/ambari-186/CHANGES.txt
    incubator/ambari/branches/ambari-186/hmc/php/util/sequentialScriptRunner.php

Modified: incubator/ambari/branches/ambari-186/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/ambari-186/CHANGES.txt?rev=1338508&r1=1338507&r2=1338508&view=diff
==============================================================================
--- incubator/ambari/branches/ambari-186/CHANGES.txt (original)
+++ incubator/ambari/branches/ambari-186/CHANGES.txt Tue May 15 02:22:40 2012
@@ -2,6 +2,8 @@ Ambari Change log
 
 Release 0.x.x - unreleased
 
+  AMBARI-224. sequentialScriptRunner.php logging in a tight loop. (Jitendra Pandey via vgogate)
+
   AMBARI-223. Add troubleshoot link in the Alerts table to provide documentation for debugging/resolving
the alerts (vgogate)
 
   AMBARI-222. Remove the word alert from all the Nagios alerts descriptions. (vgogate)

Modified: incubator/ambari/branches/ambari-186/hmc/php/util/sequentialScriptRunner.php
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/ambari-186/hmc/php/util/sequentialScriptRunner.php?rev=1338508&r1=1338507&r2=1338508&view=diff
==============================================================================
--- incubator/ambari/branches/ambari-186/hmc/php/util/sequentialScriptRunner.php (original)
+++ incubator/ambari/branches/ambari-186/hmc/php/util/sequentialScriptRunner.php Tue May 15
02:22:40 2012
@@ -216,7 +216,7 @@ foreach ($stagesInfo as $stage => $stage
   $currentStatus = $allSubTransactionsInfoResult["subTxns"][$mySubTxnId]["opStatus"];
   while ( $currentStatus != $successStatus && $currentStatus != $errorStatus
     && $currentStatus != $totalFailedStatus) {
-//        sleep(1);
+        sleep(1);
 
         $allSubTransactionsInfoResult = $dbHandle->getAllSubTransactionsInfo($clusterName,
$orchestratorTxnId);
         if ($allSubTransactionsInfoResult["result"] != 0 ) {
@@ -226,14 +226,14 @@ foreach ($stagesInfo as $stage => $stage
         }
         $currentStatus = $allSubTransactionsInfoResult["subTxns"][$mySubTxnId]["opStatus"];
 
-        $logger->log_debug(" sequentialScriptExecutors sub txns  " . json_encode($allSubTransactionsInfoResult));
+        //$logger->log_debug(" sequentialScriptExecutors sub txns  " . json_encode($allSubTransactionsInfoResult));
         if ($currentStatus != $successStatus && $currentStatus != $errorStatus 
         && $currentStatus != $totalFailedStatus) {
           updateProgressForStage($clusterName, $rootTxnId, 
             $orchestratorTxnId, $mySubTxnId, $stage);
         }
 
-        $logger->log_debug("Status we are seeing: " . $currentStatus . " txnId: " . $orchestratorTxnId
. " subTxnId " . $mySubTxnId);
+        //$logger->log_debug("Status we are seeing: " . $currentStatus . " txnId: " .
$orchestratorTxnId . " subTxnId " . $mySubTxnId);
   }
 
   // Just in case, the command finished too fast and the while loop is skipped.



Mime
View raw message