mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
ZTS: Update deadman_sync threshold
Lower the minimum number of expected deadman events from 4 to 3. All that is strictly required is a single event to consider the test a pass. However, since I've never seen a count of less than 3 reported by the CI that should be sufficient. Reviewed-by: Alexander Motin <mav@FreeBSD.org> Reviewed-by: George Melikov <mail@gmelikov.ru> Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #16575
This commit is contained in:
parent
d7ab2816ee
commit
ac8837d4d6
@ -62,7 +62,7 @@ log_must set_tunable64 DEADMAN_FAILMODE "wait"
|
||||
default_setup_noexit $DISK1
|
||||
log_must zpool events -c
|
||||
|
||||
# Force each IO to take 10s by allow them to run concurrently.
|
||||
# Force each IO to take 10s but allow them to run concurrently.
|
||||
log_must zinject -d $DISK1 -D10000:10 $TESTPOOL
|
||||
|
||||
mntpnt=$(get_prop mountpoint $TESTPOOL/$TESTFS)
|
||||
@ -80,11 +80,11 @@ else
|
||||
fi
|
||||
log_must zpool events
|
||||
|
||||
# Verify at least 4 deadman events were logged. The first after 5 seconds,
|
||||
# Verify at least 3 deadman events were logged. The first after 5 seconds,
|
||||
# and another each second thereafter until the delay is clearer.
|
||||
events=$(zpool events | grep -c ereport.fs.zfs.deadman)
|
||||
if [ "$events" -lt 4 ]; then
|
||||
log_fail "Expect >=5 deadman events, $events found"
|
||||
if [ "$events" -lt 3 ]; then
|
||||
log_fail "Expect >=3 deadman events, $events found"
|
||||
fi
|
||||
|
||||
log_pass "Verify spa deadman detected a hung txg and $events deadman events"
|
||||
|
Loading…
Reference in New Issue
Block a user