]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
qa/standalone: fixing the timings when waiting for deep-scrub to start 42398/head
authorRonen Friedman <rfriedma@redhat.com>
Sun, 11 Jul 2021 07:43:03 +0000 (10:43 +0300)
committerSatoru Takeuchi <satoru.takeuchi@gmail.com>
Thu, 22 Jul 2021 16:31:22 +0000 (16:31 +0000)
commit1c57168f85ef9062fbf713601267feb37a382bfe
treecccae77bb867e8a19e0f7a8785ccc8f6bdcab4ea
parente7c63864ec495bde684d1f99f77a4b7c52ceeb5a
qa/standalone: fixing the timings when waiting for deep-scrub to start

initiate_and_fetch_state() initiates a scrub, then polls the published
PG state looking for 'scrubbing'. Calling flush_pg_stats() as part of
the polling process might cause the scrub and the following recovery to
be missed altogether.

Note: this polling mechanism is definitely not robust. Will be
redesigned in the future.

Fixes: https://tracker.ceph.com/issues/51581
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
(cherry picked from commit ed45acee34435611f8dea7f77fde54a6586cf6d9)
qa/standalone/scrub/osd-scrub-repair.sh