Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-5679

where possible sanity-hsm should wait for file status rather than request state

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"
      

      Attachments

        Activity

          People

            wc-triage WC Triage
            jhammond John Hammond
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: