]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/*/osd-backfill-recovery-log.sh: flush_pg_stats before checking log length 34126/head
authorNeha <nojha@redhat.com>
Sun, 22 Mar 2020 20:01:23 +0000 (20:01 +0000)
committerNeha <nojha@redhat.com>
Mon, 23 Mar 2020 15:37:12 +0000 (15:37 +0000)
It is possible for the pg dump to not be the latest when we check for newprimary
in _common_test(). This is because mgr_stats_period is 5 seconds, and we may not
have fetched the latest stats just yet. This causes the test to look at the same
stats before and after wait_for_clean.

Fixes: https://tracker.ceph.com/issues/43807 (2)
Signed-off-by: Neha Ojha <nojha@redhat.com>
qa/standalone/osd/osd-backfill-recovery-log.sh

index 53582958334955a3916980ad0cd0653b2ce13ec0..6f20d90b5b5add968d39ff64900d919a4e79ccc3 100755 (executable)
@@ -74,6 +74,8 @@ function _common_test() {
     sleep 1
     wait_for_clean
 
+    flush_pg_stats
+
     newprimary=$(ceph pg dump pgs --format=json | jq '.pg_stats[0].up_primary')
     kill_daemons