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 <hutter2@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Tino Reichardt <milky-zfs@mcmilk.de>
Closes #16822
Closes #17279
This commit is contained in:
Tino Reichardt 2025-05-02 18:02:14 +02:00 committed by GitHub
parent 27f3d94940
commit 3b18877269
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -154,7 +154,7 @@ do
log_must zpool events -c log_must zpool events -c
# limit scanning time # limit scanning time
log_must set_tunable32 RESILVER_MIN_TIME_MS 50 log_must set_tunable32 RESILVER_MIN_TIME_MS 20
# initiate a resilver and suspend the scan as soon as possible # initiate a resilver and suspend the scan as soon as possible
log_must zpool replace $TESTPOOL1 $VDEV_REPLACE log_must zpool replace $TESTPOOL1 $VDEV_REPLACE