Whamcloud - gitweb
LU-12747 tests: wait properly for orhpan thread stop 95/37395/2
authorAndreas Dilger <adilger@whamcloud.com>
Sat, 1 Feb 2020 00:55:23 +0000 (17:55 -0700)
committerOleg Drokin <green@whamcloud.com>
Fri, 14 Feb 2020 05:51:04 +0000 (05:51 +0000)
commite5346a494fcb54b7f9fbc7ed4fb93003a8489231
tree71e65a81b9f2fab2d796c059b7d221aefe19842a
parente16e3d46ee8c44e691c5cd3d25161f2f297fa0fd
LU-12747 tests: wait properly for orhpan thread stop

Use wait_update_facet() to check if the MDD orphan cleanup thread has
exited, rather than a fixed 5s timeout.  We can hope that most cases
will finish faster than 5s, but don't gratuitously fail if it takes
somewhat longer.  We clearly aren't having a fatal problem here, or
there would be serious failures at cleanup time.

Fixes: fffef5c29e3b ("LU-11418 mdd: delete name if orphan doesn't exist")
Test-Parameters: trivial testlist=sanity envdefinitions=ONLY=811,ONLY_REPEAT=100
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I16b0281a519d47b5b98d495bf17040153c3ebbe5
Reviewed-on: https://review.whamcloud.com/37395
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-by: James Nunez <jnunez@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity.sh