From d3851fbf07f2172eb9a88c3ae8a22a251ca40094 Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Thu, 16 Jul 2015 19:22:29 +0200 Subject: [PATCH] tests: test-erasure-code.sh/rados_osds_out_in must wait_for_clean get_osds $poolname $objname must be called after wait_for_clean to ensure the mapping is final (no pg_temp). Otherwise, depending on how fast the machine is, a temporary mapping will be returned and it won't match the final mapping returned later. http://tracker.ceph.com/issues/12356 Fixes: #12356 Signed-off-by: Loic Dachary --- src/test/erasure-code/test-erasure-code.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/erasure-code/test-erasure-code.sh b/src/test/erasure-code/test-erasure-code.sh index cbc25bf32558e..8d99bf760564a 100755 --- a/src/test/erasure-code/test-erasure-code.sh +++ b/src/test/erasure-code/test-erasure-code.sh @@ -125,6 +125,7 @@ function rados_osds_out_in() { # implies the PG have been moved to use the remaining OSDs. Check # the object can still be retrieved. # + wait_for_clean || return 1 local osds_list=$(get_osds $poolname $objname) local -a osds=($osds_list) for osd in 0 1 ; do -- 2.47.3