diff options
author | Ravishankar N <ravishankar@redhat.com> | 2019-09-04 11:27:30 +0530 |
---|---|---|
committer | Ravishankar N <ravishankar@redhat.com> | 2020-02-27 06:40:16 +0000 |
commit | 71368e27a23e9090719e8a529bed996275464330 (patch) | |
tree | bdae08942cec68f1411fc06e8659202cd8ad9543 /xlators/cluster/afr/src/afr-self-heald.c | |
parent | e46e5721ac2b6724cbcee1b47a2fbd2b57234c9d (diff) |
tests: fix spurious failure of bug-1402841.t-mt-dir-scan-race.t
Problem:
Since commit 600ba94183333c4af9b4a09616690994fd528478, shd starts
healing as soon as it is toggled from disabled to enabled. This was
causing the following line in the .t to fail on a 'fast' machine (always
on my laptop and sometimes on the jenkins slaves).
EXPECT_NOT "^0$" get_pending_heal_count $V0
because by the time shd was disabled, the heal was already completed.
Fix:
Increase the no. of files to be healed and make it a variable called
FILE_COUNT, should we need to bump it up further because the machines
become even faster. Also created pending metadata heals to increase the
time taken to heal a file.
fixes: bz#1807748
Change-Id: I5a26b08e45b8c19bce3c01ce67bdcc28ed48198d
Signed-off-by: Ravishankar N <ravishankar@redhat.com>
(cherry picked from commit 724c657995a2e148243eeb78c68b620c6d7714a5)
Diffstat (limited to 'xlators/cluster/afr/src/afr-self-heald.c')
0 files changed, 0 insertions, 0 deletions