Whamcloud - gitweb
LU-11716 tests: fix scrub tests 50/33750/3
authorAlexander Boyko <c17825@cray.com>
Mon, 1 Oct 2018 12:47:34 +0000 (08:47 -0400)
committerOleg Drokin <green@whamcloud.com>
Wed, 23 Jan 2019 09:18:44 +0000 (09:18 +0000)
commit96950fc30f5544f019aa8d95d8decf3149f03bf8
treea4d9399d239dede0888432ed746ede66802d7ddc
parent381a8cdd527ce4deccfc3f7eb461892f6f2f3fff
LU-11716 tests: fix scrub tests

scrub_prep set MDT failloc to 0x198. It prevents the inserting
of osd_obj to OI, and brokes the logic of osd_fid_lookup. The
creating and searching quota slv file could happen during this
failloc. osd_fid_lookup() returned osd object with oo_inode equal
to zero and a bit later, osd_index_try got BUG cause it tried to
access to &LDISKFS_I(inode)->i_es_lock.

The patch adds OST object creation for quota synchronization before
setting failloc.

Test-Parameters: trivial testlist=sanity-scrub
Signed-off-by: Alexander Boyko <c17825@cray.com>
Cray-bug-id: LUS-6051
Change-Id: I8a37c476c2c95b235b0f0ecc7ec1ab0066ae3883
Reviewed-on: https://review.whamcloud.com/33750
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Nunez <jnunez@whamcloud.com>
Reviewed-by: Andriy Skulysh <c17819@cray.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity-scrub.sh