ZTS: Fix checkpoint_ro_rewind.ksh

Related to commit 90b77a036.  Retry the `zpool export` if the pool is
"busy" indicating there is a process accessing the mount point.  This
can happen after an import and allowing it to be retried will avoid
spurious test failures.

Reviewed by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #13092
This commit is contained in:
Brian Behlendorf 2022-02-13 14:22:49 -08:00 committed by GitHub
parent b7baf49bd3
commit 9f734e81f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -44,12 +44,12 @@ populate_test_pool
log_must zpool checkpoint $TESTPOOL log_must zpool checkpoint $TESTPOOL
test_change_state_after_checkpoint test_change_state_after_checkpoint
log_must zpool export $TESTPOOL log_must_busy zpool export $TESTPOOL
log_must zpool import -o readonly=on --rewind-to-checkpoint $TESTPOOL log_must zpool import -o readonly=on --rewind-to-checkpoint $TESTPOOL
test_verify_pre_checkpoint_state "ro-check" test_verify_pre_checkpoint_state "ro-check"
log_must zpool export $TESTPOOL log_must_busy zpool export $TESTPOOL
log_must zpool import $TESTPOOL log_must zpool import $TESTPOOL
test_verify_post_checkpoint_state test_verify_post_checkpoint_state