summaryrefslogtreecommitdiffstats
path: root/src/test/test_unfound.sh
diff options
context:
space:
mode:
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>2011-01-26 18:29:39 +0100
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>2011-01-26 18:29:39 +0100
commitfce3c8d8cb74a82e8a478d3ca2d62d87b689e362 (patch)
tree108712375e1fda8a3d2bef5f2c41e094165c2336 /src/test/test_unfound.sh
parentdisable scrubs during test_unfound (diff)
downloadceph-fce3c8d8cb74a82e8a478d3ca2d62d87b689e362.tar.xz
ceph-fce3c8d8cb74a82e8a478d3ca2d62d87b689e362.zip
test_unfound.sh: kill cosds rather than mark out
For this test, we need to kill cosds rather than mark them as out. Otherwise, we cannot force objects to become unfound. Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Diffstat (limited to 'src/test/test_unfound.sh')
-rwxr-xr-xsrc/test/test_unfound.sh22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/test/test_unfound.sh b/src/test/test_unfound.sh
index 89b05347836..a16042dc361 100755
--- a/src/test/test_unfound.sh
+++ b/src/test/test_unfound.sh
@@ -77,28 +77,28 @@ osd_resurrection_1() {
}
stray_test_impl() {
- ./ceph osd out 0
- # 0:out 1:active 2:active
+ stop_osd 0
+ # 0:stopped 1:active 2:active
my_write_objects 1 1
- ./ceph osd out 1
+ stop_osd 1
sleep 15
- # 0:out 1:out(ver1) 2:active(ver1)
+ # 0:stopped 1:stopped(ver1) 2:active(ver1)
my_write_objects 2 2
- ./ceph osd in 1
+ restart_osd 1
sleep 15
- # 0:out 1:active(ver1) 2:active(ver2)
+ # 0:stopped 1:active(ver1) 2:active(ver2)
- ./ceph osd out 2
+ stop_osd 2
sleep 15
- # 0:out 1:active(ver1) 2:out(ver2)
+ # 0:stopped 1:active(ver1) 2:stopped(ver2)
- ./ceph osd in 0
+ restart_osd 0
sleep 15
- # 0:active 1:active(ver1) 2:out(ver2)
+ # 0:active 1:active(ver1) 2:stopped(ver2)
poll_cmd "./ceph pg debug unfound_objects_exist" TRUE 5 300
[ $? -eq 1 ] || die "Failed to see unfound objects."
@@ -109,7 +109,7 @@ stray_test_impl() {
# objects.
#
- ./ceph osd in 2
+ restart_osd 2
sleep 15
poll_cmd "./ceph pg debug unfound_objects_exist" FALSE 4 240