From b23dbba579743d1708cf4b79c90c6da7a2c9a017 Mon Sep 17 00:00:00 2001 From: David Zafman Date: Fri, 6 Mar 2020 04:25:37 +0000 Subject: [PATCH] test: Add flush_pg_stats to avoid race with getting num_shards_repaired Fixes: https://tracker.ceph.com/issues/44439 Signed-off-by: David Zafman (cherry picked from commit e509b7c7d0d762c20927720b08d3a5b1f8980fb4) --- qa/standalone/scrub/osd-scrub-repair.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qa/standalone/scrub/osd-scrub-repair.sh b/qa/standalone/scrub/osd-scrub-repair.sh index 578998e5f6d..517298097de 100755 --- a/qa/standalone/scrub/osd-scrub-repair.sh +++ b/qa/standalone/scrub/osd-scrub-repair.sh @@ -607,6 +607,7 @@ function TEST_repair_stats() { repair $pgid wait_for_clean || return 1 ceph pg dump pgs + flush_pg_stats # This should have caused 1 object to be repaired ceph pg $pgid query | jq '.info.stats.stat_sum' @@ -680,6 +681,7 @@ function TEST_repair_stats_ec() { repair $pgid wait_for_clean || return 1 ceph pg dump pgs + flush_pg_stats # This should have caused 1 object to be repaired ceph pg $pgid query | jq '.info.stats.stat_sum' -- 2.47.3