ZTS: clone_001_pos fails in cleanup on busy dataset

The "cleanup_all" function in this test calls "zfs destroy" which
fails approximately 30% of the time in our environment due to the
dataset being busy. Since the failure happens during cleanup, the
error is propagated to subsequent tests.

Tested by running the snapshot test group in a loop without seeing
any failures.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Igor Kozhukhov <igor@dilos.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: John Kennedy <john.kennedy@delphix.com>
Closes #8409
This commit is contained in:
John Wren Kennedy 2019-02-15 13:45:46 -07:00 committed by Brian Behlendorf
parent 638dd5f44e
commit 07237a7bc1
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ function cleanup_all
i=0
while (( i < ${#args[*]} )); do
snapexists ${args[i]} && \
log_must zfs destroy -Rf ${args[i]}
destroy_dataset "${args[i]}" "-Rf"
[[ -d ${args[i+3]} ]] && \
log_must rm -rf ${args[i+3]}