HomeFreeBSD

Fix intermittency in hotspare_import_001_pos

Description

Fix intermittency in hotspare_import_001_pos

tests/sys/cddl/zfs/tests/hotspare/hotspare_import_001_pos.ksh
This test would occasionally fail because "zpool export" returns
EBUSY. That's not unexpected since it immediately follows "zpool
replace" and ZFS allows only one configuration change per
transaction group. Usually a txg will close as soon as resilvering
finishes, but sometimes "zpool export" sneaks in first. To fix the
problem, allow up to one retry of "zpool export"

Sponsored by: Spectra Logic Corp

Details

Provenance
asomersAuthored on
Parents
rS325832: Actually run reap_children during online_offline's cleanup
Branches
Unknown
Tags
Unknown