Whamcloud - gitweb
LU-11623 tests: Fix sanity 27E to ensure getattr RPC 67/35067/2
authorOleg Drokin <green@whamcloud.com>
Wed, 5 Jun 2019 06:28:24 +0000 (02:28 -0400)
committerOleg Drokin <green@whamcloud.com>
Sun, 16 Jun 2019 03:22:58 +0000 (03:22 +0000)
commit892c2251d854f480c272ab2999cdc6f4c87fecf0
tree94f77ac7a77855e81932ce3dcdd7ef6a87030e9e
parentb5a6ec93ce565b092034a858214bf7596ddc4414
LU-11623 tests: Fix sanity 27E to ensure getattr RPC

While cat does perform fstat() on the file it opens,
I guess it's not guaranteed.
More importantly, we really need to ensure the locks
that the file has after creation are dropped before
we issue our stat() to ensure the RPC is actually made,
since it's this GETATTR RPC that is ensuring easize
update from MDT response.

Change-Id: Ic86229ac514e1385c665c6c0d9f6eef13d9748f5
Signed-off-by: Oleg Drokin <green@whamcloud.com>
Test-Parameters: trivial
Reviewed-on: https://review.whamcloud.com/35067
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-by: James Nunez <jnunez@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/tests/sanity.sh