List:Commits« Previous MessageNext Message »
From:John H. Embretsen Date:June 3 2009 11:44am
Subject:bzr commit into mysql-falcon branch (john.embretsen:399)
View as plain text  
#At bzr+ssh://bk-internal.mysql.com/bzrroot/mysql-falcon/ based on revid:john.embretsen@stripped

  399 John H. Embretsen	2009-06-03
      Falcon stress_tx_rr automation scripts: Save copy of server's vardir to logdir.
      Also added note about MTR_BUILD_THREAD in README.

    modified:
      auto-stress_tx_rr/README.txt
      auto-stress_tx_rr/RUNME.bash
=== modified file 'auto-stress_tx_rr/README.txt'
--- a/auto-stress_tx_rr/README.txt	2009-06-02 13:58:57 +0000
+++ b/auto-stress_tx_rr/README.txt	2009-06-03 11:44:18 +0000
@@ -48,14 +48,22 @@ MULTIPLE PARALLELL RUNS:
     - Local product code branch (e.g. mysql-6.0-falcon-team_stress-tx-rr)
     - Local test-extra code branch (e.g. mysql-test-extra-6.0_stress-tx-rr)
  - For example, to run with both 5 threads and 50 threads simultaneously, specify
+   the following environment variables...
    in terminal 1:
      TEST_RUN_ID=5threads
      STRESS_TX_RR_THREADS=5
+     MTR_BUILD_THREAD=1
      [run the test]
    in terminal 2:
      TEST_RUN_ID=50threads
      STRESS_TX_RR_THREADS=50
+     MTR_BUILD_THREAD=2
 
+Please note that since mysql-stress-test.pl requires MTR_VERSION=1, you
+most likely have to set MTR_BUILD_THREAD to some unique number if you are
+planning to run multiple test runs at the same time, in order to avoid 
+interference such as unexpected server shutdowns etc.
+     
 See host-specific .inc file in include/ for details regarding variables used
 in the various other scripts. If you cannot find such a file for your host,
 please add one by copying an existing host file and adjusting the values to

=== modified file 'auto-stress_tx_rr/RUNME.bash'
--- a/auto-stress_tx_rr/RUNME.bash	2009-06-02 13:58:57 +0000
+++ b/auto-stress_tx_rr/RUNME.bash	2009-06-03 11:44:18 +0000
@@ -234,7 +234,13 @@ if [ $? != 0 ]; then
     echo "[ERROR_RUNME] test script failed!" >> ${RUNME_LOG}
     echo "[ERROR_RUNME] test script failed!"
     echo "[ERROR_RUNME] See logs in ${LOG_DIR}"
-
+    
+    # Copy server's error log to log dir (assuming MTR_VERSION=1):
+    #cp ${FALCON_LOCAL_WORK_BZR}/mysql-test/var/log/master.err ${LOG_DIR} >> ${RUNME_LOG} 2>&1
+    
+    # Copy the entire test vardir to the log dir
+    cp -r ${FALCON_LOCAL_WORK_BZR}/mysql-test/var/ ${LOG_DIR} >> ${RUNME_LOG} 2>&1
+    
     # Send report by E_mail
     TO_ADDRESS="${REPORT_TO}"
     SPECIAL_LOG="${RUN_TEST_LOG}"


Attachment: [text/bzr-bundle] bzr/john.embretsen@sun.com-20090603114418-rxq93hf0e7xvy31o.bundle
Thread
bzr commit into mysql-falcon branch (john.embretsen:399) John H. Embretsen3 Jun