Details
-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
3
-
15911
Description
In several sanity-hsm sub tests the racy wait_request_state calls can be replaced safer waits on a specific HSM status.
test_222b() {
# test needs a running copytool
copytool_setup
mkdir -p $DIR/$tdir
local f=$DIR/$tdir/$tfile
local fid=$(copy_file /etc/passwd $f)
changelog_setup
$LFS hsm_archive --archive $HSM_ARCHIVE_NUMBER $f
wait_request_state $fid ARCHIVE SUCCEED
$LFS hsm_release $f
md5sum $f
wait_request_state $fid RESTORE SUCCEED
local flags=$(changelog_get_flags ${MDT[0]} HSM $fid | tail -1)
local target=0x80
[[ $flags == $target ]] || error "Changelog flag is $flags not $target"
cleanup
}
run_test 222b "Changelog for implicit restore"