]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test: Add flush_pg_stats to avoid race with getting num_shards_repaired 33776/head
authorDavid Zafman <dzafman@redhat.com>
Fri, 6 Mar 2020 04:25:37 +0000 (04:25 +0000)
committerDavid Zafman <dzafman@redhat.com>
Fri, 6 Mar 2020 04:25:37 +0000 (04:25 +0000)
Fixes: https://tracker.ceph.com/issues/44439
Signed-off-by: David Zafman <dzafman@redhat.com>
qa/standalone/scrub/osd-scrub-repair.sh

index 287d970132e6e82e0d78824731dfc3618fd79a7d..8eccae3dc20a83277a982191218db0504a77ca28 100755 (executable)
@@ -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'