Skip to content

Commit cd777ba

Browse files
mcmilktonyhutter
authored andcommitted
ZTS: Fix replacement/resilver_restart_001 on FreeBSD
Decrease the RESILVER_MIN_TIME_MS variable from 50 to 20. So the test, which expects two 2 resilver starts will see them. Logfile of the seen failures before this fix: log: NOTE: expected 2 resilver start(s) after offline/online, found 1 log: expected 2 resilver start(s) after offline/online, found 1 The test time decreases also from around 00:42 to 00:24 seconds. Reviewed-by: Tony Hutter <[email protected]> Reviewed-by: Alexander Motin <[email protected]> Signed-off-by: Tino Reichardt <[email protected]> Closes #16822 Closes #17279 (cherry picked from commit 3b18877)
1 parent ad63ab2 commit cd777ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/zfs-tests/tests/functional/replacement/resilver_restart_001.ksh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ do
154154
log_must zpool events -c
155155

156156
# limit scanning time
157-
log_must set_tunable32 RESILVER_MIN_TIME_MS 50
157+
log_must set_tunable32 RESILVER_MIN_TIME_MS 20
158158

159159
# initiate a resilver and suspend the scan as soon as possible
160160
log_must zpool replace $TESTPOOL1 $VDEV_REPLACE

0 commit comments

Comments
 (0)