Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
tests: osd-scrub-repair.sh disable scrub backoff in test #13334
Really I think we should add the configuration variable per my comment.
bool coin_flip = (rand() % 3) == whoami % 3; return !coin_flip; // false to schedule the scrub immediately
how about we having something like?
OPTION(osd_scrub_backoff_ratio, OPT_DOUBLE, .33) // the probability to back off the scheduled scrub // .... bool coin_flip = rand() % (double)RAND_MAX >= _conf->osd_scrub_backoff_ratio; return !coin_flip;
and we can this the ratio to 0.0 before the test, so the scrub is always scheduled right after the
retest this please.