]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test: osd-backfill-spsace.sh doesn't matter which PG wins the race 28187/head
authorDavid Zafman <dzafman@redhat.com>
Thu, 25 Apr 2019 03:39:02 +0000 (20:39 -0700)
committerPrashant D <pdhange@redhat.com>
Tue, 21 May 2019 01:02:41 +0000 (21:02 -0400)
Fixes: http://tracker.ceph.com/issues/39333
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 9931023457b46c2b605fdfb5b1e76f40f525cd36)

qa/standalone/osd/osd-backfill-space.sh

index ba86fdc14dfb0972379b5174b8092611b9bf8111..936043250edf1cd41b1f6be581e62a95fd437c8b 100755 (executable)
@@ -408,8 +408,8 @@ function TEST_backfill_test_sametarget() {
 # With fillpool down write 2611 byte objects 
 # Take down $osd and bring back $fillosd simultaneously
 # Wait for backfilling
-# PG 2.0 will be able to backfill its remaining data
-# PG 3.0 must get backfill_toofull
+# One PG will be able to backfill its remaining data
+# One PG must get backfill_toofull
 function TEST_backfill_multi_partial() {
     local dir=$1
     local EC=$2
@@ -507,15 +507,15 @@ function TEST_backfill_multi_partial() {
     ceph pg dump pgs
 
     ERRORS=0
-    if [ "$(ceph pg dump pgs | grep "^3.0" | grep +backfill_toofull | wc -l)" != "1" ];
+    if [ "$(get_num_in_state backfill_toofull)" != "1" ];
     then
-      echo "PG 3.0 should be in backfill_toofull"
+      echo "One PG should be in backfill_toofull"
       ERRORS="$(expr $ERRORS + 1)"
     fi
 
-    if [ "$(ceph pg dump pgs | grep "^2.0" | grep active+clean | wc -l)" != "1" ];
+    if [ "$(get_num_in_state active+clean)" != "2" ];
     then
-      echo "PG 2.0 should have completed backfill"
+      echo "Two PGs should be active+clean after one PG completed backfill"
       ERRORS="$(expr $ERRORS + 1)"
     fi