From: David Zafman Date: Fri, 4 Nov 2016 23:24:36 +0000 (-0700) Subject: test-erasure-eio: Avoid racing recovery by setting noout X-Git-Tag: v11.1.0~388^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c680804141dcab68cc9c16a42db72c16e3ee27ac;p=ceph.git test-erasure-eio: Avoid racing recovery by setting noout Fixes: http://tracker.ceph.com/issues/17757 Signed-off-by: David Zafman --- diff --git a/src/test/erasure-code/test-erasure-eio.sh b/src/test/erasure-code/test-erasure-eio.sh index 9ad2afd75fac..93260223d20a 100755 --- a/src/test/erasure-code/test-erasure-eio.sh +++ b/src/test/erasure-code/test-erasure-eio.sh @@ -196,6 +196,7 @@ function set_size() { local poolname=pool-jerasure local -a initial_osds=($(get_osds $poolname $objname)) local osd_id=${initial_osds[$shard_id]} + ceph osd set noout if [ "$mode" = "add" ]; then objectstore_tool $dir $osd_id $objname get-bytes $dir/CORRUPT || return 1 @@ -208,6 +209,7 @@ function set_size() { fi objectstore_tool $dir $osd_id $objname set-bytes $dir/CORRUPT || return 1 rm -f $dir/CORRUPT + ceph osd unset noout } function rados_get_data_bad_size() {