Skip to content

qa/standalone: fixing the timings when waiting for deep-scrub to start#42410

Merged
neha-ojha merged 1 commit intoceph:masterfrom
ronen-fr:wip-ronenf-standalone-repair
Jul 21, 2021
Merged

qa/standalone: fixing the timings when waiting for deep-scrub to start#42410
neha-ojha merged 1 commit intoceph:masterfrom
ronen-fr:wip-ronenf-standalone-repair

Conversation

@ronen-fr
Copy link
Contributor

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

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>
@ronen-fr
Copy link
Contributor Author

Copy link
Member

@neha-ojha neha-ojha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine for now, let's try to make these tests more deterministic as a part of the broader effort to make the scrub standalone tests to work with mclock.

@neha-ojha
Copy link
Member

Copy link
Contributor

@sseshasa sseshasa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants