Whamcloud - gitweb
LU-5079 tests: fix service_time in max_recovery_time() 24/12724/9
authorJian Yu <jian.yu@intel.com>
Mon, 24 Nov 2014 22:32:55 +0000 (14:32 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 27 Nov 2014 13:53:08 +0000 (13:53 +0000)
commit9bb24bf1ce4977b32d4bf9b55cef5a25072cef5e
tree275fbae0cb45b750581ae8cd77cae830119e852f
parent4295402585605e1ba210ad96c12e3820fa523f7b
LU-5079 tests: fix service_time in max_recovery_time()

This patch fixes the calculation of service_time in
max_recovery_time() to use the new method in
check_and_start_recovery_timer() and new values of
CONNECTION_SWITCH_MAX and CONNECTION_SWITCH_INC.

The patch also fixes replay-dual sub-tests:
- to call wait_clients_import_state() instead of sleeping
  uncertain time in test_11()
- to add some margin into the recovery time comparison
  in test_20()

Test-Parameters: alwaysuploadlogs \
envdefinitions=SLOW=yes,ENABLE_QUOTA=yes,REPLAY_DUAL_EXCEPT=21 \
mdtfilesystemtype=ldiskfs mdsfilesystemtype=ldiskfs \
ostfilesystemtype=ldiskfs mdtcount=1 \
testlist=replay-dual,replay-dual

Signed-off-by: Jian Yu <jian.yu@intel.com>
Change-Id: Ife0fab28ed7b67ac61022f7e8a38957e3995b167
Reviewed-on: http://review.whamcloud.com/12724
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/replay-dual.sh
lustre/tests/test-framework.sh