From 77aa3f2e38e94d1ac83afa2f7ef18a1ca9de92af Mon Sep 17 00:00:00 2001 From: Nathaniel Clark Date: Wed, 24 Apr 2013 10:10:25 -0400 Subject: [PATCH] LU-2831 tests: Sync MDS data also when doing sync_all_data The quota data was differing in sanity-quota/35 before and after restart because the MDS data had not synced prior to checking the values. This patch forces MDS data to sync whenever sync_all_data is called. This should prevent this error from recurring here and elsewhere. Signed-off-by: Nathaniel Clark Change-Id: Ic2e1dafefbc2d83fc281d76845504c4547dd0694 Reviewed-on: http://review.whamcloud.com/6142 Tested-by: Hudson Reviewed-by: Jian Yu Reviewed-by: Niu Yawei Tested-by: Maloo Reviewed-by: Oleg Drokin --- lustre/tests/test-framework.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index b881b9e..743d017 100644 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -1793,7 +1793,10 @@ wait_update_facet() { } sync_all_data() { - do_node $(osts_nodes) "lctl set_param -n osd*.*OS*.force_sync 1" 2>&1 | + do_nodes $(comma_list $(mdts_nodes)) \ + "lctl set_param -n osd*.*MDT*.force_sync 1" + do_nodes $(comma_list $(osts_nodes)) \ + "lctl set_param -n osd*.*OS*.force_sync 1" 2>&1 | grep -v 'Found no match' } -- 1.8.3.1